Skip to content

Commit c758fed

Browse files
LorenzoBianconikuba-moo
authored andcommitted
net: stmmac: add missing NETDEV_XDP_ACT_XSK_ZEROCOPY bit to xdp_features
Add missing xsk zero-copy bit to xdp_features capability flag. Fixes: 66c0e13 ("drivers: net: turn on XDP features") Signed-off-by: Lorenzo Bianconi <[email protected]> Link: https://lore.kernel.org/r/c8949baafdf617188dcedb9033ce5a9ca6e9e5ff.1676195440.git.lorenzo@kernel.org Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 511b88f commit c758fed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/stmicro/stmmac/stmmac_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7154,6 +7154,7 @@ int stmmac_dvr_probe(struct device *device,
71547154
ndev->hw_features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
71557155
NETIF_F_RXCSUM;
71567156
ndev->xdp_features = NETDEV_XDP_ACT_BASIC | NETDEV_XDP_ACT_REDIRECT |
7157+
NETDEV_XDP_ACT_XSK_ZEROCOPY |
71577158
NETDEV_XDP_ACT_NDO_XMIT;
71587159

71597160
ret = stmmac_tc_init(priv, priv);

0 commit comments

Comments
 (0)