diff options
author | 2021-03-31 23:08:57 +0300 | |
---|---|---|
committer | 2021-03-31 14:57:44 -0700 | |
commit | 9d2b68cc108db2fdb35022ed2d88cfb305c441a6 (patch) | |
tree | bfdb28824ada92b1b9f23b7bfbafad8a4805c770 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: enetc: increase RX ring default size (diff) | |
download | wireguard-linux-9d2b68cc108db2fdb35022ed2d88cfb305c441a6.tar.xz wireguard-linux-9d2b68cc108db2fdb35022ed2d88cfb305c441a6.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions