kernel_optimize_test/include/linux/usb
Ben Hutchings 1e9e39f4a2 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-03-29 12:06:43 -07:00
..
association.h
atmel_usba_udc.h
audio-v2.h
audio.h
c67x00.h
cdc_ncm.h
cdc-wdm.h
ch9.h
chipidea.h
composite.h
ehci_def.h
ehci_pdriver.h USB: host: Introduce flag to enable use of 64-bit dma_mask for ehci-platform 2015-01-25 20:48:28 +08:00
ehci-dbgp.h
ezusb.h
functionfs.h
g_hid.h
gadget_configfs.h
gadget.h usb: gadget: introduce is_selfpowered for usb_gadget 2015-01-29 10:32:21 -06:00
gpio_vbus.h
hcd.h USB: add flag for HCDs that can't receive wakeup requests (isp1760-hcd) 2015-01-31 09:05:06 -08:00
input.h
iowarrior.h
irda.h
isp116x.h
isp1301.h
isp1362.h
isp1760.h
m66592.h
msm_hsusb_hw.h
msm_hsusb.h
musb-omap.h
musb-ux500.h
musb.h
net2280.h
of.h
ohci_pdriver.h
otg-fsm.h
otg.h
phy_companion.h
phy.h usb: phy: change some comments 2015-01-12 12:13:28 -06:00
quirks.h
r8a66597.h
renesas_usbhs.h
rndis_host.h
samsung_usb_phy.h
serial.h Revert "USB: serial: make bulk_out_size a lower limit" 2015-02-26 17:02:15 +01:00
sl811.h
storage.h
tegra_usb_phy.h
tilegx.h
uas.h
ulpi.h
usb338x.h
usb_phy_generic.h usb: phy: generic: add vbus support 2015-01-12 12:13:29 -06:00
usbnet.h usbnet: Fix tx_packets stat for FLAG_MULTI_FRAME drivers 2015-03-29 12:06:43 -07:00
wusb-wa.h
wusb.h
xhci_pdriver.h