summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb/dm9601.c
diff options
context:
space:
mode:
authorBreno Leitao <leitao@linux.vnet.ibm.com>2008-07-22 21:27:20 +0200
committerJeff Garzik <jgarzik@redhat.com>2008-07-30 00:24:30 +0200
commitdc56e634c807c6be69be8af919f20a746197b87d (patch)
tree1357c28fa017eca6ee8ed40eb751d02f12469659 /drivers/net/usb/dm9601.c
parentenc28j60: don't specify (wrong) IRQ type (diff)
downloadlinux-dc56e634c807c6be69be8af919f20a746197b87d.tar.xz
linux-dc56e634c807c6be69be8af919f20a746197b87d.zip
S2io: fix statistics flush after a MTU change
On s2io driver, when you change the interface MTU, it invokes a card reset, which flush some statistics. This patch solves this problem, and also set the net_device->stats as the default statistics structure, instead of s2io_nic->stats. To do that, s2io_nic->stats turned into a staging area, where is saved statistics of the last hardware statistics query. So, the difference between the current hardware statistics and s2io_nic->stats, is the value that should be summed up, in order to get the correct statistics value, even after a reset. Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com> Signed-off-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/usb/dm9601.c')
0 files changed, 0 insertions, 0 deletions