]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: Account for tx bytes and packets on sending xdp_frames
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Thu, 31 Jan 2019 11:40:30 +0000 (20:40 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Feb 2019 04:14:28 +0000 (20:14 -0800)
commitecf1c1d4a5fc3b4731976926a6b43f40bd973986
treebb65f0c2802f31bd7fe72dae88736e3fc09f2df9
parent8f07296435ac1f39ec0833156dce6de0883c5678
virtio_net: Account for tx bytes and packets on sending xdp_frames

Previously virtnet_xdp_xmit() did not account for device tx counters,
which caused confusions.
To be consistent with SKBs, account them on freeing xdp_frames.

Reported-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c