Commit 5744ba0
tun: fix missing dropped counter in tun_xdp_act
The commit 8ae1aff ("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: 8ae1aff ("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>1 parent d09486a commit 5744ba0
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1630 | 1630 | | |
1631 | 1631 | | |
1632 | 1632 | | |
1633 | | - | |
| 1633 | + | |
| 1634 | + | |
1634 | 1635 | | |
| 1636 | + | |
1635 | 1637 | | |
1636 | 1638 | | |
1637 | 1639 | | |
1638 | | - | |
| 1640 | + | |
| 1641 | + | |
1639 | 1642 | | |
| 1643 | + | |
1640 | 1644 | | |
1641 | 1645 | | |
1642 | 1646 | | |
| |||
0 commit comments