]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/mlx5: Remove unused 'offset' field from mlx5_sq_bfreg
authorCosmin Ratiu <cratiu@nvidia.com>
Tue, 16 Sep 2025 14:11:36 +0000 (17:11 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Sep 2025 01:30:25 +0000 (18:30 -0700)
commit05dfe654b5932322e297aba11dd6f3f26eea6ecb
tree2d006eb4b2b625935619eab1d4458770adbcdfa7
parent917449e7c3cdc7a0dfe429de997e39098d9cdd20
net/mlx5: Remove unused 'offset' field from mlx5_sq_bfreg

The 'offset' field was introduced in the original commit [1] and never
used until commit [2], which added an unnecessary use.

Remove the field and refactor the write-combining test to use a local
variable instead.

[1] commit a6d51b68611e ("net/mlx5: Introduce blue flame register
allocator")
[2] commit d98995b4bf98 ("net/mlx5: Reimplement write combining test")
Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com>
Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/wc.c
include/linux/mlx5/driver.h