net: fec: turn on XDP features
Subsystems (4)
[email protected]
maintainerPATCH v2 1/1 net: fec: turn on XDP features
From: Wei Fang <[email protected]>
The XDP features are supported since the commit 66c0e13ad236 ("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.
---
V2 change:
fec with FEC_QUIRK_SWAP_FRAME quirk does not support XDP, so check this condition before turn on XDP features.
--- drivers/net/ethernet/freescale/fec_main.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/net/ethernet/freescale/fec_main.c +5 -0
@@ -4031,6 +4031,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 )
Signature · 1 line
2.25.1
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:
Quoted 9 lines · On Fri, 19 May 2023 09:48:25 +0800 you wrote:
From: Wei Fang <[email protected]>
The XDP features are supported since the commit
66c0e13ad236("drivers: net: turn on XDP features"). Currently, the fec driver supportsNETDEV_XDP_ACT_BASIC,NETDEV_XDP_ACT_REDIRECTandNETDEV_XDP_ACT_NDO_XMIT. So turn on these XDP features for fec driver.[...]
Here is the summary with links:
- [V2,net-next] net: fec: turn on XDP features
https://git.kernel.org/netdev/net-next/c/e4ac7cc6e5a4
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html