eth: fbnic: Advertise supported XDP features.
Subsystems (4)
PATCH 1/1 eth: fbnic: Advertise supported XDP features.
Drivers are supposed to advertise the XDP features they support. This was missed while adding XDP support.
Before:
$ ynl --family netdev --dump dev-get
...
{'ifindex': 3,
'xdp-features': set(),
'xdp-rx-metadata-features': set(),
'xsk-features': set()},
...After:
$ ynl --family netdev --dump dev-get
...
{'ifindex': 3,
'xdp-features': {'basic', 'rx-sg'},
'xdp-rx-metadata-features': set(),
'xsk-features': set()},
...Fixes 168deb7b31b2 ("eth: fbnic: Add support for XDP_TX action")
Signed-off-by Jakub Kicinski <[email protected]>
Signed-off-by Dimitri Daskalakis <[email protected]>
--- drivers/net/ethernet/meta/fbnic/fbnic_netdev.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c +2 -0
@@ -805,6 +805,8 @@ struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd) netdev->hw_enc_features |= netdev->features; netdev->features |=NETIF_F_NTUPLE ; + netdev->xdp_features =NETDEV_XDP_ACT_BASIC |NETDEV_XDP_ACT_RX_SG ; + netdev->min_mtu =IPV6_MIN_MTU ; netdev->max_mtu =FBNIC_MAX_JUMBO_FRAME_SIZE -ETH_HLEN ;
Signature · 1 line
2.47.3
Quoted 21 lines · Dimitri Daskalakis
Drivers are supposed to advertise the XDP features they support. This was missed while adding XDP support.
Before:
$ ynl --family netdev --dump dev-get ... {'ifindex': 3, 'xdp-features': set(), 'xdp-rx-metadata-features': set(), 'xsk-features': set()}, ...After:
$ ynl --family netdev --dump dev-get ... {'ifindex': 3, 'xdp-features': {'basic', 'rx-sg'}, 'xdp-rx-metadata-features': set(), 'xsk-features': set()}, ...
Quoted 3 lines
Fixes 168deb7b31b2 ("eth: fbnic: Add support for XDP_TX action")Signed-off-by Jakub Kicinski <[email protected]>Signed-off-by Dimitri Daskalakis <[email protected]>
Reviewed-by Simon Horman <[email protected]>
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:
Quoted 12 lines · On Tue, 17 Feb 2026 19:06:20 -0800 you wrote:
Drivers are supposed to advertise the XDP features they support. This was missed while adding XDP support.
Before:
$ ynl --family netdev --dump dev-get ... {'ifindex': 3, 'xdp-features': set(), 'xdp-rx-metadata-features': set(), 'xsk-features': set()}, ...
Quoted 1 line
[...]
Here is the summary with links:
- [net] eth: fbnic: Advertise supported XDP features.
https://git.kernel.org/netdev/net/c/e977fcb3a318
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html