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 <[email protected]> Reviewed-by: Yevgeny Kliteynik <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 530b69a commit 10e0f0c

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/steering/hws

1 file changed

+1
-0
lines changed

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)