linux/drivers/net/usb
Ben Hutchings 6588af614e usbnet: Fix tx_packets stat for FLAG_MULTI_FRAME drivers
Currently the usbnet core does not update the tx_packets statistic for
drivers with FLAG_MULTI_PACKET and there is no hook in the TX
completion path where they could do this.

cdc_ncm and dependent drivers are bumping tx_packets stat on the
transmit path while asix and sr9800 aren't updating it at all.

Add a packet count in struct skb_data so these drivers can fill it
in, initialise it to 1 for other drivers, and add the packet count
to the tx_packets statistic on completion.

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Tested-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-02-28 14:27:21 -05:00
..
asix_common.c usbnet: Fix tx_packets stat for FLAG_MULTI_FRAME drivers 2015-02-28 14:27:21 -05:00
asix_devices.c
asix.h
ax88172a.c
ax88179_178a.c
catc.c
cdc_eem.c
cdc_ether.c
cdc_mbim.c
cdc_ncm.c usbnet: Fix tx_packets stat for FLAG_MULTI_FRAME drivers 2015-02-28 14:27:21 -05:00
cdc_subset.c
cdc-phonet.c
cx82310_eth.c
dm9601.c
gl620a.c
hso.c hso: always read interface number from the current altsetting 2015-02-20 15:21:31 -05:00
huawei_cdc_ncm.c
int51x1.c
ipheth.c
kalmia.c
kaweth.c usb/kaweth: use GFP_ATOMIC under spin_lock in usb_start_wait_urb() 2015-01-12 16:42:49 -05:00
Kconfig
lg-vl600.c
Makefile
mcs7830.c
net1080.c
pegasus.c
pegasus.h
plusb.c
qmi_wwan.c
r8152.c r8152: support setting rx coalesce 2015-02-19 15:08:43 -05:00
rndis_host.c
rtl8150.c
sierra_net.c
smsc75xx.c
smsc75xx.h
smsc95xx.c
smsc95xx.h
sr9700.c net: usb: sr9700: Use 'SR_' prefix for the common register macros 2015-02-04 13:53:02 -08:00
sr9700.h net: usb: sr9700: Use 'SR_' prefix for the common register macros 2015-02-04 13:53:02 -08:00
sr9800.c usbnet: Fix tx_packets stat for FLAG_MULTI_FRAME drivers 2015-02-28 14:27:21 -05:00
sr9800.h
usbnet.c usbnet: Fix tx_packets stat for FLAG_MULTI_FRAME drivers 2015-02-28 14:27:21 -05:00
zaurus.c