]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: E-Switch, move work queue generation counter
authorMark Bloch <mbloch@nvidia.com>
Tue, 28 Apr 2026 05:10:15 +0000 (08:10 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 Apr 2026 00:46:27 +0000 (17:46 -0700)
commitf950ddb57ce46eee0d2b8f1d6ea47f835c224103
tree5706714304c7af8f6eeac0343e271719b0ef052c
parente2d217fe3ff2a73ace0dbfe41b620c7fb767b000
net/mlx5: E-Switch, move work queue generation counter

The generation counter in mlx5_esw_functions is used to detect stale
work items on the E-Switch work queue. Move it from mlx5_esw_functions
to the top-level mlx5_eswitch struct so it can guard all work types,
not just function-change events.

This is a mechanical refactor: no behavioral change.

Signed-off-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: Cosmin Ratiu <cratiu@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20260428051018.219093-2-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c