Commit e4ac7cc6 authored by Wei Fang's avatar Wei Fang Committed by David S. Miller

net: fec: turn on XDP features

The XDP features are supported since the commit 66c0e13a
("drivers: net: turn on XDP features"). Currently, the fec
driver supports NETDEV_XDP_ACT_BASIC, NETDEV_XDP_ACT_REDIRECT
and NETDEV_XDP_ACT_NDO_XMIT. So turn on these XDP features
for fec driver.
Signed-off-by: default avatarWei Fang <wei.fang@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent dcbe4ea1
......@@ -4030,6 +4030,11 @@ static int fec_enet_init(struct net_device *ndev)
ndev->hw_features = ndev->features;
if (!(fep->quirks & FEC_QUIRK_SWAP_FRAME))
ndev->xdp_features = NETDEV_XDP_ACT_BASIC |
NETDEV_XDP_ACT_REDIRECT |
NETDEV_XDP_ACT_NDO_XMIT;
fec_restart(ndev);
if (fep->quirks & FEC_QUIRK_MIB_CLEAR)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment