Skip to content

Commit 0db8653

Browse files
Hariprasad Kelamgregkh
authored andcommitted
Octeontx2-pf: Update xdp features
[ Upstream commit cdf8de9 ] In recent testing, verification of XDP_REDIRECT and zero-copy features failed because the driver is not setting the corresponding feature flags. Fixes: efabce2 ("octeontx2-pf: AF_XDP zero copy receive support") Fixes: 66c0e13 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 00a39a1 commit 0db8653

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • drivers/net/ethernet/marvell/octeontx2/nic

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3255,7 +3255,9 @@ static int otx2_probe(struct pci_dev *pdev, const struct pci_device_id *id)
32553255
netdev->watchdog_timeo = OTX2_TX_TIMEOUT;
32563256

32573257
netdev->netdev_ops = &otx2_netdev_ops;
3258-
netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT;
3258+
netdev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
3259+
NETDEV_XDP_ACT_NDO_XMIT |
3260+
NETDEV_XDP_ACT_XSK_ZEROCOPY;
32593261

32603262
netdev->min_mtu = OTX2_MIN_MTU;
32613263
netdev->max_mtu = otx2_get_max_mtu(pf);

0 commit comments

Comments
 (0)