diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-03-31 23:08:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-31 14:57:44 -0700 |
commit | 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 (patch) | |
tree | bfdb28824ada92b1b9f23b7bfbafad8a4805c770 /kernel/smpboot.c | |
parent | d6a2829e82cff9e5ec10b8ee293488b57399ed01 (diff) |
net: enetc: add support for XDP_REDIRECT
The driver implementation of the XDP_REDIRECT action reuses parts from
XDP_TX, most notably the enetc_xdp_tx function which transmits an array
of TX software BDs. Only this time, the buffers don't have DMA mappings,
we need to create them.
When a BPF program reaches the XDP_REDIRECT verdict for a frame, we can
employ the same buffer reuse strategy as for the normal processing path
and for XDP_PASS: we can flip to the other page half and seed that to
the RX ring.
Note that scatter/gather support is there, but disabled due to lack of
multi-buffer support in XDP (which is added by this series):
https://patchwork.kernel.org/project/netdevbpf/cover/cover.1616179034.git.lorenzo@kernel.org/
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/smpboot.c')
0 files changed, 0 insertions, 0 deletions