18 Nov, 2011
1 commit
-
…wireless-next into for-davem
Conflicts:
include/net/bluetooth/bluetooth.h
17 Nov, 2011
39 commits
-
Signed-off-by: David S. Miller
-
This patch fixes a crash when non existing IPv6 route is tried to be changed.
When new destination node was inserted in middle of FIB6 tree, no relevant
sanity checks were performed. Later route insertion might have been prevented
due to invalid request, causing node with no rt info being left in tree.
When this node was accessed, a crash occurred.Patch adds missing checks in fib6_add_1()
Signed-off-by: Matti Vaittinen
Signed-off-by: David S. Miller -
Mark stats timer as deferrable: punctuality in waking the stats timer
callback doesn't matter much, as it is responsible only to avoid
integer wraparound.We need at least 1 other timer to fire within 17s (fully loaded 1Gbps)
to avoid wrap-arounds. Desired period is still 10s.Signed-off-by: David Decotigny
Signed-off-by: David S. Miller -
This adds code to update the stats counter for dropped RX frames.
Signed-off-by: David Decotigny
Signed-off-by: David S. Miller -
This commit implements the ndo_get_stats64() API for forcedeth. Since
hardware stats are being updated from different contexts (process and
timer), this commit adds synchronization. For software stats, it
relies on the u64_stats_sync.h API.Tested:
- 16-way SMP x86_64 ->
RX bytes:7244556582 (7.2 GB) TX bytes:181904254 (181.9 MB)
- pktgen + loopback: identical rx_bytes/tx_bytes and rx_packets/tx_packetsSigned-off-by: David Decotigny
Signed-off-by: David S. Miller -
This adds a new module parameter "debug_tx_timeout" to silence most
debug messages in case of TX timeout. These messages don't provide a
signal/noise ratio high enough for production systems and, with ~30kB
logged each time, they tend to add to a cascade effect if the system
is already under stress (memory pressure, disk, etc.).By default, the parameter is clear, meaning that only a single warning
will be reported.Signed-off-by: David Decotigny
Signed-off-by: David S. Miller -
This adds a few kernel messages to indicate whether PCIe interrupts
are signaled with MSI or MSI-X.Signed-off-by: David Decotigny
Signed-off-by: David S. Miller -
This adds the /sys/class/net/DEV/queues/Q/tx_timeout attribute
containing the total number of timeout events on the given queue. It
is always available with CONFIG_SYSFS, independently of
CONFIG_RPS/XPS.Credits to Stephen Hemminger for a preliminary version of this patch.
Tested:
without CONFIG_SYSFS (compilation only)
with sysfs and without CONFIG_RPS & CONFIG_XPS
with sysfs and without CONFIG_RPS
with sysfs and without CONFIG_XPS
with defaultsSigned-off-by: David Decotigny
Signed-off-by: David S. Miller -
This commit fixes following warning:
net/core/net-sysfs.c:921:6: warning: symbol 'numa_node' shadows an earlier one
include/linux/topology.h:222:1: originally declared hereSigned-off-by: David Decotigny
Signed-off-by: David S. Miller -
This change makes sure that tx_packets/rx_bytes ifconfig counters are
updated even on NICs that don't provide hardware support for these
stats: they are now updated in software. For the sake of consistency,
we also now have tx_bytes updated in software (hardware counters
include ethernet CRC, and software doesn't account for it).This reverts parts of:
- "forcedeth: statistics optimization" (21828163b2)
- "forcedeth: Improve stats counters" (0bdfea8ba8)
- "forcedeth: remove unneeded stats updates" (4687f3f364)Tested:
pktgen + loopback (http://patchwork.ozlabs.org/patch/124698/)
reports identical tx_packets/rx_packets and tx_bytes/rx_bytes.Signed-off-by: David Decotigny
Signed-off-by: David S. Miller
(cherry picked from commit 898bdf2cb43eb0a962c397eb4dd1aec2c7211be2) -
Signed-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
Save some punctuation by using bool type's property equivalent to
doubled negation operator.Reported-by: Ben Hutchings
Signed-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
Add missing spaces around multiplication operator.
Signed-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
Reduce the number of #defines, use the normal #define from if_ether.h
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Reduce the number of #defines, use the normal #define from if_ether.h
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Reduce the number of #defines, use the normal #define from if_ether.h
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Reduce the number of #defines, use the normal #define from if_ether.h
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Reduce the number of #defines, use the normal #define from if_ether.h
Signed-off-by: Joe Perches
Signed-off-by: David S. Miller -
Translating between ethtool advertisement settings and MII
advertisements are common operations for ethernet drivers. This patch
adds a set of helper functions that implements the conversion. The
patch then modifies a couple of the drivers to use the new functions.Signed-off-by: Matt Carlson
Signed-off-by: Michael Chan
Signed-off-by: David S. Miller -
Since multiple team instances are putting defined options into their
option list, during register each option must be cloned before added
into list. This resolves uncool memory corruptions when using multiple
teams.Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
No need to have spinlock for this purpose. So convert this to mutex and
avoid current schedule while atomic problems in netlink code.Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
Signed-off-by: Jiri Pirko
Signed-off-by: David S. Miller -
dev_queue_xmit() consumes its own skb, so the call to dev_kfree_skb()
in lowpan_fragment_xmit() is a double free.Signed-off-by: Dan Carpenter
Acked-by: Alexander Smirnov
Signed-off-by: David S. Miller -
Use V1 version of query link status command for Lancer.
Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
To enable VLAN promiscous mode, the HW interface should be created
with VLAN promiscous capability in Lancer. Add this capability during
creation of the HW interface.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Implemented eeprom dump using ethtool feature for Lancer.
Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Implement register dump using ethtool for Lancer.
Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Lancer uses V1 version of TXQ create. This command needs interface
id for TX queue creation. Rearrange code such that tx queue create
is after interface create. As TXQ create is now called after MCC
ring create use MCC instead of MBOX.Signed-off-by: Padmanabh Ratnakar
Signed-off-by: David S. Miller -
Signed-off-by: David S. Miller
-
Only distinct use is checking if NETIF_F_NOCACHE_COPY should be
enabled by default. The check heuristics is altered a bit here,
so it hits other people than before. The default shouldn't be
trusted for performance-critical cases anyway.For all other uses NETIF_F_NO_CSUM is equivalent to NETIF_F_HW_CSUM.
Signed-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
Signed-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
v2: changed loop in ethtool_set_features() per Ben's suggestion
Signed-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
Signed-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
Define feature values by bit position instead of direct 2**i values
and force the values to be of type netdev_features_t.Cleaned and extended from patch by Mahesh Bandewar :
+ added netdev_features_t casts
+ included bits under NETIF_F_GSO_MASK
+ moved feature #defines out of struct net_device definitionSigned-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
v2: add couple missing conversions in drivers
split unexporting netdev_fix_features()
implemented %pNF
convert sock::sk_route_(no?)capsSigned-off-by: Michał Mirosław
Signed-off-by: David S. Miller -
Move features definitions to separate header so that linux/skbuff.h won't
need to include linux/netdevice.h after netdev_features_t is introduced.Signed-off-by: Michał Mirosław
Acked-by: Ben Hutchings
Signed-off-by: David S. Miller -
This is the only place left where dev->features are directly
exposed to userspace.I know checkpatch.pl complains about __ethtool_{get,set}_flags(), but
the code is easier to read this way.Signed-off-by: Michał Mirosław
Acked-by: Ben Hutchings
Signed-off-by: David S. Miller -
As all drivers are converted, we may now remove discrete offload setting
callback handling.Signed-off-by: Michał Mirosław
Acked-by: Ben Hutchings
Signed-off-by: David S. Miller