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
..
2015-02-15 19:40:10 +01:00
2015-02-10 10:23:15 +00:00
2015-02-12 14:30:53 -08:00
2015-02-15 11:11:47 -08:00
2015-01-29 10:54:43 +02:00
2015-02-16 17:56:04 -08:00
2015-02-15 11:37:02 -08:00
2015-02-17 09:27:54 -08:00
2015-02-17 13:20:42 -08:00
2015-02-17 09:38:59 -08:00
2015-02-17 09:27:54 -08:00
2015-02-04 10:42:55 -08:00
2015-02-13 21:39:06 +01:00
2015-02-17 14:17:51 -08:00
2015-02-13 21:39:06 +01:00
2015-02-17 09:17:33 -08:00
2015-01-30 17:00:43 +01:00
2015-02-13 21:21:41 -08:00
2015-02-12 08:51:56 -08:00
2015-02-16 15:48:00 -08:00
2015-02-09 11:17:45 +01:00
2015-02-15 10:48:44 -08:00
2015-02-03 12:17:12 -08:00
2015-01-30 17:58:43 +01:00
2015-02-15 19:40:09 +01:00
2015-02-15 11:30:39 -08:00
2015-02-17 15:18:19 -08:00
2015-02-13 21:21:38 -08:00
2015-02-12 09:16:56 -08:00
2015-02-16 15:20:40 -08:00
2015-02-05 15:40:23 -08:00
2015-02-02 14:36:10 -08:00
2015-02-04 12:10:41 +01:00
2015-02-11 12:56:40 -08:00
2015-02-03 15:48:51 -08:00
2015-02-17 17:34:21 -08:00
2015-02-11 17:06:05 -08:00
2015-01-29 22:57:43 -06:00
2015-02-03 15:58:39 -08:00
2015-02-15 10:48:44 -08:00
2015-02-04 13:39:14 +01:00
2015-02-15 10:11:39 -08:00
2015-02-28 14:27:21 -05:00
2015-02-04 09:15:18 +01:00
2015-02-17 09:38:59 -08:00
2015-02-10 15:09:41 -08:00
2015-02-17 09:38:59 -08:00
2015-02-15 10:24:55 -08:00
2015-02-11 11:23:13 -08:00
2015-02-15 11:37:02 -08:00
2015-01-28 15:08:10 +01:00
2015-01-27 08:14:26 -06:00
2015-02-08 11:16:30 +08:00
2015-02-17 09:17:33 -08:00
2015-02-13 09:55:09 -08:00
2015-02-17 15:18:19 -08:00
2015-02-17 09:38:59 -08:00
2015-02-11 14:38:28 -08:00
2015-02-11 14:38:29 -08:00
2015-02-17 14:56:45 -08:00
2015-01-27 16:59:56 -08:00
2015-02-15 11:37:02 -08:00
2015-02-17 17:41:19 -08:00
2015-02-15 10:24:55 -08:00
2015-02-15 08:17:15 -08:00
2015-02-11 17:06:05 -08:00
2015-02-11 10:28:45 -08:00
2015-02-03 15:58:39 -08:00