18 Nov, 2011
1 commit
-
…wireless-next into for-davem
Conflicts:
include/net/bluetooth/bluetooth.h
17 Nov, 2011
27 commits
-
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 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) -
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 -
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 -
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 -
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 -
Convert some remaining straglers' .get_drvinfo routines to use strlcpy
rather than strcpy/strncpy.Signed-off-by: Rick Jones
Signed-off-by: David S. Miller -
Add a new .bus_name to virtio_config_ops then modify virtio_net to
call through to it in an ethtool .get_drvinfo routine to report
bus_info in ethtool -i output which is consistent with other
emulated NICs and the output of lspci.Signed-off-by: Rick Jones
Signed-off-by: David S. Miller
16 Nov, 2011
9 commits
-
Use the normal #defines not module specific ones.
Signed-off-by: Joe Perches
Tested-by: Stephen Ko
Signed-off-by: Jeff Kirsher -
printks should use KERN_ levels.
Signed-off-by: Joe Perches
Tested-by: Aaron Brown
Signed-off-by: Jeff Kirsher -
Based on original patch from Joe Perches
Use the current logging styles.
pr_ conversions are now prefixed with "igb: "
Correct a defect where the trailing NTU may have been printed
on a separate line because of an interleaving hex_dump.Remove unnecessary uses of KERN_CONT and use single pr_info()s
to avoid any possible output interleaving from other modules.Coalesce formats as appropriate.
-v2 fix-up to make checkpatch.pl compliant and remove change to
the copyright lineCC: Joe Perches
Signed-off-by: Jeff Kirsher
Tested-by: Aaron Brown -
Based on the original patch from Joe Perches
Use the current logging styles, prefix output with "ixgbevf: "
Add #define pr_fmt
Coalesce formats.-v2 Fix-up to make checkpatch.pl compliant and remove change to
copyright lineCC: Joe Perches
Signed-off-by: Jeff Kirsher
Tested-by: Sibai Li -
Based on the previous patch from Joe Perches
Use current logging styles.
Prefix all output via #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
Neaten link status dev_info.-v2 Remove Copyright changes and fix-up patch to make it checkpatch.pl
compliant.CC: Joe Perches
Signed-off-by: Jeff Kirsher
Tested-by: Sibai Li -
Previously the driver would force link without checking whether the link was
already established. This caused some inconsistencies in the LED blink rate.Do not force link if link is already up.
Signed-off-by: Emil Tantilov
Tested-by: Phil Schmitt
Signed-off-by: Jeff Kirsher -
Based on the original patch from Joe Perches.
Use the current logging styles.
pr_ conversions are now prefixed with "e1000e:"
Correct a couple of defects where the trailing NTU may have
been printed on a separate line because of an interleaving
hex_dump.
Remove unnecessary uses of KERN_CONT and use single pr_info()s
to avoid any possible output interleaving from other modules.
Coalesce formats as appropriate.
Remove an extra space from a broken across lines
coalescing of "Link Status " and " Change".-v2 Remove changes to Copyright string
CC: Joe Perches
Signed-off-by: Jeff Kirsher
Tested-by: Aaron Brown -
Commit afc4b13d (net: remove use of ndo_set_multicast_list in
drivers) changed e1000e to use the ndo_set_rx_mode entry point,
but didn't implement the unicast address programming
functionality. Implement it to achieve the ability to add unicast
addresses.Signed-off-by: Jesse Brandeburg
Tested-by: Aaron Brown
Signed-off-by: Jeff Kirsher -
This patch adds phy reset functionality to mdio-gpio driver. Now
mdio_gpio_platform_data has new member as function pointer which can be
filled at the bsp level for a callback from phy infrastructure. Also the
mdio-bitbang driver fills-in the reset function of mii_bus structure.Without this patch the bsp level code has to takecare of the reseting
PHY's on the bus, which become bit hacky for every bsp and
phy-infrastructure is ignored aswell.Signed-off-by: Srinivas Kandagatla
Signed-off-by: David S. Miller
15 Nov, 2011
3 commits
-
Reported-by: Joe Perches
Signed-off-by: Dmitry Kravkov
Signed-off-by: David S. Miller -
This patch fixes an issue introduced recently with commit
452448f9283e1939408b397e87974a418825b0a8.CC: Marc Kleine-Budde
Signed-off-by: Wolfgang Grandegger
Signed-off-by: David S. Miller -
This round of floor sweeping converts strncpy calls in various .get_drvinfo
routines to the preferred strlcpy. It also does a modicum of other
cleaning in those routines.Signed-off-by: Rick Jones
Signed-off-by: David S. Miller