]> asedeno.scripts.mit.edu Git - linux.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)
commit546f28974d771b124fb0bf7b551b343888cf0419
treebb65f0c2802f31bd7fe72dae88736e3fc09f2df9
parentcfe4bd7a257f6d6f81d3458d8c9d9ec4957539e6
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