Now that we have the plumbing in for XDP zero copy RX and TX, enable
the zero copy feature flag.

Signed-off-by: Roger Quadros <[email protected]>
---
 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c 
b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
index 
2e06e7df23ad5249786d081e51434f87dd2a76b5..9d1048eea7e4734873676026906e07babf0345f5
 100644
--- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c
+++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c
@@ -3210,7 +3210,8 @@ am65_cpsw_nuss_init_port_ndev(struct am65_cpsw_common 
*common, u32 port_idx)
                               NETIF_F_HW_VLAN_CTAG_FILTER;
        port->ndev->xdp_features = NETDEV_XDP_ACT_BASIC |
                                   NETDEV_XDP_ACT_REDIRECT |
-                                  NETDEV_XDP_ACT_NDO_XMIT;
+                                  NETDEV_XDP_ACT_NDO_XMIT |
+                                  NETDEV_XDP_ACT_XSK_ZEROCOPY;
        port->ndev->vlan_features |=  NETIF_F_SG;
        port->ndev->netdev_ops = &am65_cpsw_nuss_netdev_ops;
        port->ndev->ethtool_ops = &am65_cpsw_ethtool_ops_slave;

-- 
2.34.1

Reply via email to