]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: fix tx packets accounting
authorEric Dumazet <edumazet@google.com>
Mon, 26 Feb 2018 03:12:10 +0000 (19:12 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 02:01:53 +0000 (21:01 -0500)
commitd7077625bd85cd6ce650aed65c35a677d405b9d0
tree8ecd3a18210ffd4e8796eda1ea2a293ef1c4d988
parentaa396c2b46df2aba0cbf60e5f7544f9cdbea2ead
r8152: fix tx packets accounting

r8152 driver handles TSO packets (limited to ~16KB) quite well,
but pretends each TSO logical packet is a single packet on the wire.

There is also some error since headers are accounted once, but
error rate is small enough that we do not care.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c