Skip to content

Commit

Permalink
net/mlx5: DR: Fix cast to restricted __be32
Browse files Browse the repository at this point in the history
raw_ip actual type is __be32 and not u32.
Fix that and get rid of the warning.

drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c:906:31:
warning: cast to restricted __be32

Signed-off-by: Saeed Mahameed <[email protected]>
Reviewed-by: Mark Bloch <[email protected]>
  • Loading branch information
Saeed Mahameed committed May 30, 2020
1 parent 618f88c commit c2ba2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste.c
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ static void dr_ste_copy_mask_misc(char *mask, struct mlx5dr_match_misc *spec)

static void dr_ste_copy_mask_spec(char *mask, struct mlx5dr_match_spec *spec)
{
u32 raw_ip[4];
__be32 raw_ip[4];

spec->smac_47_16 = MLX5_GET(fte_match_set_lyr_2_4, mask, smac_47_16);

Expand Down

0 comments on commit c2ba2c2

Please sign in to comment.