]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: ethernet: enetc: unlock XDP_REDIRECT for XDP non-linear buffers
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 4 Jan 2023 13:57:10 +0000 (14:57 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 Jan 2023 05:38:29 +0000 (21:38 -0800)
commit8feb020f92a559f5a73a55c7337a3e51f19a2dc9
tree54cb0ecb7dae1db2188bb10c34871c480ef82361
parent4aea86b4033f92f01547e6d4388d4451ae9b0980
net: ethernet: enetc: unlock XDP_REDIRECT for XDP non-linear buffers

Even if full XDP_REDIRECT is not supported yet for non-linear XDP buffers
since we allow redirecting just into CPUMAPs, unlock XDP_REDIRECT for
S/G XDP buffer and rely on XDP stack to properly take care of the
frames.

Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc.c