summaryrefslogtreecommitdiffstats
path: root/include/linux/usb/uas.h
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2015-03-25 21:41:33 +0100
committerLuis Henriques <luis.henriques@canonical.com>2015-04-27 09:48:14 +0100
commit08e0ae0370706aaa18bab048aade89b81470a71e (patch)
tree6bc5a844fae6cda3184a4bebee44ede73f14c79f /include/linux/usb/uas.h
parent7d2237ad7d172dcca04c68378fdfe571d0aaff12 (diff)
downloadlinux-stable-08e0ae0370706aaa18bab048aade89b81470a71e.tar.gz
linux-stable-08e0ae0370706aaa18bab048aade89b81470a71e.tar.bz2
linux-stable-08e0ae0370706aaa18bab048aade89b81470a71e.zip
usbnet: Fix tx_bytes statistic running backward in cdc_ncm
commit 7a1e890e2168e33fb62d84528e996b8b4b478fea upstream. cdc_ncm disagrees with usbnet about how much framing overhead should be counted in the tx_bytes statistics, and tries 'fix' this by decrementing tx_bytes on the transmit path. But statistics must never be decremented except due to roll-over; this will thoroughly confuse user-space. Also, tx_bytes is only incremented by usbnet in the completion path. Fix this by requiring drivers that set FLAG_MULTI_FRAME to set a tx_bytes delta along with the tx_packets count. Fixes: beeecd42c3b4 ("net: cdc_ncm/cdc_mbim: adding NCM protocol statistics") Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk> Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux/usb/uas.h')
0 files changed, 0 insertions, 0 deletions