Skip to content

Commit 10e0f0c

Browse files
Cosmin Ratiukuba-moo
authored andcommitted
net/mlx5: HWS: Properly set bwc queue locks lock classes
The mentioned "Fixes" patch forgot to do that. Fixes: 9addffa ("net/mlx5: HWS, use lock classes for bwc locks") Signed-off-by: Cosmin Ratiu <cratiu@nvidia.com> Reviewed-by: Yevgeny Kliteynik <kliteyn@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20241203204920.232744-3-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 530b69a commit 10e0f0c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/net/ethernet/mellanox/mlx5/core/steering/hws

drivers/net/ethernet/mellanox/mlx5/core/steering/hws/send.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,7 @@ static int hws_bwc_send_queues_init(struct mlx5hws_context *ctx)
990990
for (i = 0; i < bwc_queues; i++) {
991991
mutex_init(&ctx->bwc_send_queue_locks[i]);
992992
lockdep_register_key(ctx->bwc_lock_class_keys + i);
993+
lockdep_set_class(ctx->bwc_send_queue_locks + i, ctx->bwc_lock_class_keys + i);
993994
}
994995

995996
return 0;

0 commit comments

Comments
 (0)