]> Gentwo Git Trees - linux/.git/commit
net/mlx5e: Update XDP features in switch channels
authorTariq Toukan <tariqt@nvidia.com>
Sun, 30 Nov 2025 10:13:36 +0000 (12:13 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 2 Dec 2025 14:20:41 +0000 (15:20 +0100)
commit96a8395061358adcd4b6a4f0f4c8989ec69e8659
treef3c3357c06ad02047565cbd3bc0b2f441ac4a08b
parent31a3ed492dd41908b60b57d82f0ba878eae685fd
net/mlx5e: Update XDP features in switch channels

The XDP features state might depend of the state of other features, like
HW-LRO / HW-GRO.

In general, move the re-evaluation announcement of the XDP features
(xdp_set_features_flag_locked) into the flow where configuration gets
changed. There's no point in updating them elsewhere.

This is a more appropriate place, as this modifies the announced
features while channels are inactive, which avoids the small interval
between channel activation and the proper setting of the XDP features.

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: William Tu <witu@nvidia.com>
Link: https://patch.msgid.link/1764497617-1326331-2-git-send-email-tariqt@nvidia.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c