Skip to contentSkip to conversation

eth: fbnic: Advertise supported XDP features.

PATCH Applied Dimitri Daskalakis 3 participants 3 messages Feb 18 – Feb 19

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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")
---
 drivers/net/ethernet/meta/fbnic/fbnic_netdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c +2 -0
index e3ca5fcfabef..b4b396ca9bce 100644
@@ -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
reviewer Reviewed-by on v1 1/1
#1 lore raw
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")
#2 lore raw
In reply to Dimitri Daskalakis
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