aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/mellanox/mlx5/core
diff options
context:
space:
mode:
authorGravatar Vladimir Oltean <vladimir.oltean@nxp.com> 2021-03-31 23:08:57 +0300
committerGravatar David S. Miller <davem@davemloft.net> 2021-03-31 14:57:44 -0700
commit9d2b68cc108db2fdb35022ed2d88cfb305c441a6 (patch)
treebfdb28824ada92b1b9f23b7bfbafad8a4805c770 /drivers/net/ethernet/mellanox/mlx5/core
parentnet: enetc: increase RX ring default size (diff)
downloadlinux-9d2b68cc108d.tar.gz
linux-9d2b68cc108d.tar.bz2
linux-9d2b68cc108d.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 'drivers/net/ethernet/mellanox/mlx5/core')
0 files changed, 0 insertions, 0 deletions