]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: ti: icssg-prueth: Enable zero copy in XDP features
authorMeghana Malladi <m-malladi@ti.com>
Tue, 18 Nov 2025 13:55:42 +0000 (19:25 +0530)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 20 Nov 2025 14:24:11 +0000 (15:24 +0100)
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>
drivers/net/ethernet/ti/icssg/icssg_prueth.c

index 22de04ac18cb410332f0c1398cc54c521b50c5ae..f65041662173c1968f7e70dc4a3d897523f24095 100644 (file)
@@ -1554,7 +1554,8 @@ static int prueth_netdev_init(struct prueth *prueth,
        xdp_set_features_flag(ndev,
                              NETDEV_XDP_ACT_BASIC |
                              NETDEV_XDP_ACT_REDIRECT |
-                             NETDEV_XDP_ACT_NDO_XMIT);
+                             NETDEV_XDP_ACT_NDO_XMIT |
+                             NETDEV_XDP_ACT_XSK_ZEROCOPY);
 
        netif_napi_add(ndev, &emac->napi_rx, icssg_napi_rx_poll);
        hrtimer_setup(&emac->rx_hrtimer, &emac_rx_timer_callback, CLOCK_MONOTONIC,