]> git.baikalelectronics.ru Git - kernel.git/commit
net: mana: Add support of XDP_REDIRECT action
authorHaiyang Zhang <haiyangz@microsoft.com>
Tue, 14 Jun 2022 20:28:55 +0000 (13:28 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 16 Jun 2022 08:40:25 +0000 (10:40 +0200)
commit244a0300a2c12ee44a723204226414a9fdcb7311
tree1eead152c2dfc6a4685fc96ea8323f016d399760
parent5aec8d8ee42ee5c1581333cd556dc06d1e0166ea
net: mana: Add support of XDP_REDIRECT action

Add a handler of the XDP_REDIRECT return code from a XDP program. The
packets will be flushed at the end of each RX/CQ NAPI poll cycle.
ndo_xdp_xmit() is implemented by sharing the code in mana_xdp_tx().
Ethtool per queue counters are added for XDP redirect and xmit operations.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/microsoft/mana/mana.h
drivers/net/ethernet/microsoft/mana/mana_bpf.c
drivers/net/ethernet/microsoft/mana/mana_en.c
drivers/net/ethernet/microsoft/mana/mana_ethtool.c