Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Octeontx2-pf: Update xdp features

In recent testing, verification of XDP_REDIRECT and zero-copy features
failed because the driver is not setting the corresponding feature flags.

Fixes: efabce290151 ("octeontx2-pf: AF_XDP zero copy receive support")
Fixes: 66c0e13ad236 ("drivers: net: turn on XDP features")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://patch.msgid.link/20260119100222.2267925-1-hkelam@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Hariprasad Kelam and committed by
Jakub Kicinski
cdf8de9c c7159e96

+3 -1
+3 -1
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
··· 3249 3249 netdev->watchdog_timeo = OTX2_TX_TIMEOUT; 3250 3250 3251 3251 netdev->netdev_ops = &otx2_netdev_ops; 3252 - netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT; 3252 + netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT | 3253 + NETDEV_XDP_ACT_NDO_XMIT | 3254 + NETDEV_XDP_ACT_XSK_ZEROCOPY; 3253 3255 3254 3256 netdev->min_mtu = OTX2_MIN_MTU; 3255 3257 netdev->max_mtu = otx2_get_max_mtu(pf);