]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
veth: introduce more specialized counters in veth_stats
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 19 Mar 2020 16:41:26 +0000 (17:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Mar 2020 04:24:58 +0000 (21:24 -0700)
commit1c5b82e55f152988778bebeea52fae7f6cea9a60
treef69002d7f0280ab3c38f72bca314b6404ee1d258
parent65780c5627a26d788f10e2b1a37125779a556a58
veth: introduce more specialized counters in veth_stats

Introduce xdp_tx, xdp_redirect and rx_drops counters in veth_stats data
structure. Move stats accounting in veth_poll. Remove xdp_xmit variable
in veth_xdp_rcv_one/veth_xdp_rcv_skb and rely on veth_stats counters.
This is a preliminary patch to align veth xdp statistics to mlx, intel
and marvell xdp implementation

Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/veth.c