]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
tun: fix missing dropped counter in tun_xdp_act
authorYunjian Wang <wangyunjian@huawei.com>
Fri, 19 Jan 2024 10:22:35 +0000 (18:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jan 2024 10:58:04 +0000 (10:58 +0000)
commit5744ba05e7c4bff8fec133dd0f9e51ddffba92f5
tree4c286f5e2b30176c43c645e5bb6d5e0d3e4232d4
parentd09486a04f5da0a812c26217213b89a3b1acf836
tun: fix missing dropped counter in tun_xdp_act

The commit 8ae1aff0b331 ("tuntap: split out XDP logic") includes
dropped counter for XDP_DROP, XDP_ABORTED, and invalid XDP actions.
Unfortunately, that commit missed the dropped counter when error
occurs during XDP_TX and XDP_REDIRECT actions. This patch fixes
this issue.

Fixes: 8ae1aff0b331 ("tuntap: split out XDP logic")
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tun.c