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

net: ti: icssg-prueth: Enable zero copy in XDP features

Enable the zero copy feature flag in xdp_set_features_flag()
for a given ndev to get the AF-XDP zero copy support running
for both Tx and Rx.

Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Meghana Malladi <m-malladi@ti.com>
Link: https://patch.msgid.link/20251118135542.380574-7-m-malladi@ti.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Meghana Malladi and committed by
Paolo Abeni
c6a1ec18 7a64bb38

+2 -1
+2 -1
drivers/net/ethernet/ti/icssg/icssg_prueth.c
··· 1554 1554 xdp_set_features_flag(ndev, 1555 1555 NETDEV_XDP_ACT_BASIC | 1556 1556 NETDEV_XDP_ACT_REDIRECT | 1557 - NETDEV_XDP_ACT_NDO_XMIT); 1557 + NETDEV_XDP_ACT_NDO_XMIT | 1558 + NETDEV_XDP_ACT_XSK_ZEROCOPY); 1558 1559 1559 1560 netif_napi_add(ndev, &emac->napi_rx, icssg_napi_rx_poll); 1560 1561 hrtimer_setup(&emac->rx_hrtimer, &emac_rx_timer_callback, CLOCK_MONOTONIC,