Skip to content

Commit 5219923

Browse files
ddvladPaolo Abeni
authored andcommitted
net/mlx5: HWS, Rightsize bwc matcher priority
The bwc layer was clamping the matcher priority from 32 bits to 16 bits. This didn't show up until a matcher was resized, since the initial native matcher was created using the correct 32 bit value. The fix also reorders fields to avoid some padding. Fixes: 2111bb9 ("net/mlx5: HWS, added backward-compatible API handling") Signed-off-by: Vlad Dogaru <[email protected]> Reviewed-by: Yevgeny Kliteynik <[email protected]> Reviewed-by: Mark Bloch <[email protected]> Signed-off-by: Tariq Toukan <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
1 parent 03ebae1 commit 5219923

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlx5/core/steering/hws/bwc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ struct mlx5hws_bwc_matcher {
2424
struct mlx5hws_matcher *matcher;
2525
struct mlx5hws_match_template *mt;
2626
struct mlx5hws_action_template *at[MLX5HWS_BWC_MATCHER_ATTACH_AT_NUM];
27+
u32 priority;
2728
u8 num_of_at;
28-
u16 priority;
2929
u8 size_log;
3030
atomic_t num_of_rules;
3131
struct list_head *rules;

0 commit comments

Comments
 (0)