07 Dec, 2013
40 commits
-
Print a message to notify the user of how many VFs are initialized on each
port.Change-Id: I29ac2acc478ee4e588fd6ffcc35133d4c6607ca9
Signed-off-by: Anjali Singhai Jain
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
Put the print and reset statements in the actual test functions to make
them more self-contained, and only run the reset for tests that need it.Change-Id: Ic70f49b11bf8bae82e59d8fd25b46215c90c4510
Signed-off-by: Shannon Nelson
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
Fix a bug where the TESTING state was still set when
exiting the ethtool diagnostics.Change-Id: Ic47950d2e86a67167d1d282256d477cecd86d820
Signed-off-by: Shannon Nelson
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
The VSI may be allocated more queues (alloc_queue_pairs) than actually
are to be used (num_queue_pairs), so only allocate rings for the queues
to be used. The numbers will likely be the same for most VSIs, but can
be different based on how TCs are assigned and enabled.Change-Id: Ie40f7ad0affbc4b45d6f049bcf02ee2fa24edc74
Signed-off-by: Shannon Nelson
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
RSS can steer packets based on recognition of all
sorts of different headers. Enable some more of them.Change-Id: I2264dedae66fb0bceca6fb6e772e050e3ca8efc8
Signed-off-by: Anjali Singhai Jain
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
In order to re-size queues and vectors while the interface is
still up, we need to be able to call functions to free and
re-allocate without bringing down the VSI.We also need to reset the existing setup, update the
configuration and then rebuild again. This requires us to have
the reset flow broken down into two parts.Change-Id: I374dd25aabf769decda69b676491c7b7730a4635
Signed-off-by: Anjali Singhai Jain
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
Update the driver version to 0.3.12-k
Signed-off-by: Catherine Sullivan
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
Whitespace fixes
Change-Id: I95f4d02e4a2a92d6b6fca3ae2b7865c4b916a9bb
Signed-off-by: Jeff Kirsher
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala -
Enable a couple of workarounds based on revision ID that allow the
driver to work more fully on early hardware.Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
Add a new flag to the add VEB command which allows the
driver to request the hardware to filter on L2 parameters.This is an implementation of the driver access to a new firmware
feature.Change-Id: Id61d3cad4125bdc68b8fd9d555c448a10c344b6b
Signed-off-by: Kevin Scott
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
Set the media type in the hardware structure, based
on the external connection type.Add Direct Attach to the type of media reported by ethtool.
Change-Id: I4ad2f5bf882766d6e737fac4477abf049491b3b3
Signed-off-by: Shannon Nelson
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
The hash is reported correctly in the rss field if and only if
the filter status is 3. Other values of filter status mean
different things and we shouldn't depend on a bitwise result.The issue was that
a & b --> returns true for b={1,2,3}
the fix is
a & b == bAlso refactor this function to use constant operations because we
are in fast path.Change-Id: I4e29be87439c1cf8b60bc31bea29dff89596c013
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
In order to get 1588 to work correctly the defines need a bit
of a tweak.Change-Id: Ie50ce2a18e1593441f1560411e5a4f51c6d48aaa
Signed-off-by: Jacob Keller
Signed-off-by: Jesse Brandeburg
Tested-by: Kavindya Deegala
Signed-off-by: Jeff Kirsher -
Add a new check for CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS to reduce
the number of or's used in the ether_addr_equal comparison to very
slightly improve function performance.Simplify the ether_addr_equal_64bits implementation.
Integrate and remove the zap_last_2bytes helper as it's now
used only once.Remove the now unused compare_ether_addr function.
Update the unaligned-memory-access documentation to remove the
compare_ether_addr description and show how unaligned accesses
could occur with ether_addr_equal.Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
use pr_ instead of printk(LEVEL)
Signed-off-by: Wang Weidong
Signed-off-by: David S. Miller -
Creating an address with this flag set will result in kernel taking care
of temporary addresses in the same way as if the address was created by
kernel itself (after RA receive). This allows userspace applications
implementing the autoconfiguration (NetworkManager for example) to
implement ipv6 addresses privacy.Signed-off-by: Jiri Pirko
Signed-off-by: Thomas Haller
Signed-off-by: David S. Miller -
There is no more space in u8 ifa_flags. So do what davem suffested and
add another netlink attr called IFA_FLAGS for carry more flags.Signed-off-by: Jiri Pirko
Signed-off-by: Thomas Haller
Signed-off-by: David S. Miller -
Some network drivers use dev_kfree_skb_any() and dev_kfree_skb_irq()
helpers to free skbs, both for dropped packets and TX completed ones.We need to separate the two causes to get better diagnostics
given by dropwatch or "perf record -e skb:kfree_skb"This patch provides two new helpers, dev_consume_skb_any() and
dev_consume_skb_irq() to be used for consumed skbs.__dev_kfree_skb_irq() is slightly optimized to remove one
atomic_dec_and_test() in fast path, and use this_cpu_{r|w} accessors.Signed-off-by: Eric Dumazet
Signed-off-by: David S. Miller -
Signed-off-by: Zhi Yong Wu
Signed-off-by: David S. Miller -
Signed-off-by: Zhi Yong Wu
Signed-off-by: David S. Miller -
Signed-off-by: Zhi Yong Wu
Signed-off-by: David S. Miller -
Since vhost_dev_init() forever return 0, some branches are never run,
therefore need to be removed.Signed-off-by: Zhi Yong Wu
Acked-by: Michael S. Tsirkin
Signed-off-by: David S. Miller -
Signed-off-by: Nithin Nayak Sujir
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
commit 4d95847381228639844c7197deb8b2211274ef22 - "tg3: Workaround
rx_discards stat bug", added a workaround for miscounted statistics for
multicast packets. This fix needs to be applied to the 5762.Signed-off-by: Nithin Nayak Sujir
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
The APD bit is 14 and not bit 10.
Signed-off-by: Nithin Nayak Sujir
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Some link partners have issues if the non-standard 1G half duplex is
advertised. This patch adds support for an nvram setting to disable the
advertisement.Signed-off-by: Nithin Nayak Sujir
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
rxbds_empty is an informational statistic signifying that a ring full
condition was observed. It does not mean an overflow has occurred.Signed-off-by: Nithin Nayak Sujir
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Florian Fainelli says:
====================
net: of_mdio improvementsThis patchset contains a few improvements to the MDIO device tree parsing
code such as refactoring and parsing the "max-speed" property which is
defined in the ePAPR specification.
====================Signed-off-by: David S. Miller
-
The 'max-speed' property is optional but defined in the ePAPR
specification and now supported by the Linux Device Tree parsing
infrastructure.Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
The ARC emac driver was the only in-tree to parse a PHY device
'max-speed' property but yet failed to do it correctly because
'max-speed' is supposed to set a PHY device supported features, not the
advertising features as it was done.Now that of_mdiobus_register() takes care of doing that, remove the
custom 'max-speed' parsing code.Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
The "max-speed" property is defined per the ePAPR specification to
express the maximum speed a PHY supports. Use that property, if present
to set the phydev->supported features which properly restricts the PHY
within the range of defined speeds.Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Breakdown the PHY_*_FEATURES into per speed defines such that we can
easily re-use them individually.Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
If irq_of_parse_and_map fails to find an interrupt line for a given PHY,
we will force the PHY interrupt to be PHY_POLL, completely overriding
the previous value that the MDIO bus may have set for us (e.g:
PHY_IGNORE_INTERRUPT). In case of failure, just restore the previous
value.Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Use the PHY_MAX_ADDR constant for checking if a MDIO bus address is
valid instead of using a plain "32".Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
Since commit 779d835e ("net: of_mdio: scan mdiobus for PHYs without reg
property") we have two foreach loops which do pretty much the same
thing. Factor the PHY device registration in a function helper:
of_mdiobus_register_phy() which takes care of the details and allows for
future PHY specific extensions.Signed-off-by: Florian Fainelli
Signed-off-by: David S. Miller -
fix some typos
Acked-by: Neil Horman
Signed-off-by: Wang Weidong
Signed-off-by: David S. Miller -
sctp_peer_needs_update only return 0 or 1.
Acked-by: Neil Horman
Signed-off-by: Wang Weidong
Signed-off-by: David S. Miller -
Make the code more simplification.
Acked-by: Neil Horman
Suggested-by: Joe Perches
Signed-off-by: Wang Weidong
Signed-off-by: David S. Miller -
kzalloc had initialize the allocated memroy. Therefore, remove the
initialize with 0 and the memset.Acked-by: Neil Horman
Signed-off-by: Wang Weidong
Signed-off-by: David S. Miller -
Jeff Kirsher says:
====================
Intel Wired LAN Driver UpdatesThis series contains updates to i40e only.
Christopher Pau provides a patch to set pf_id based on device and
function numbers since NICs with ARI enabled can have function
numbers larger than 8.Anjali provides 3 i40e patches to update hardware defines to keep
in sync with hardware updates.Shannon provides the majority of i40e patches, with 7. First patch
clears the admin queue head and tail registers during admin queue
shutdown. Then simplifies the admin queue head-tail-len setups to
use more virtual registers. Provides several patches to cleanup
and fix driver load and reset procedures to make more robust. Lastly,
provides an ethtool test for interrupts using the software interrupt.Mitch provides some i40e patches which fixes up VF code in the PF
driver, specifically the number of vectors per VF are reported by the
hardware does not include vector 0, so we need to account for this
when checking. In addition, cleans up debugging messages.Kamil provides an i40e patch to fix the diagnostics test by restricting
the diagnostic test length.
====================Signed-off-by: David S. Miller