Skip to content

Commit 84e4582

Browse files
kliteyngregkh
authored andcommitted
net/mlx5: HWS, fix missing ip_version handling in definer
[ Upstream commit b5e3c76 ] Fix missing field handling in definer - outer IP version. Fixes: 74a778b ("net/mlx5: HWS, added definers handling") Signed-off-by: Yevgeny Kliteynik <[email protected]> Signed-off-by: Mark Bloch <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent ec4bcb7 commit 84e4582

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,9 @@ hws_definer_conv_outer(struct mlx5hws_definer_conv_data *cd,
559559
HWS_SET_HDR(fc, match_param, IP_PROTOCOL_O,
560560
outer_headers.ip_protocol,
561561
eth_l3_outer.protocol_next_header);
562+
HWS_SET_HDR(fc, match_param, IP_VERSION_O,
563+
outer_headers.ip_version,
564+
eth_l3_outer.ip_version);
562565
HWS_SET_HDR(fc, match_param, IP_TTL_O,
563566
outer_headers.ttl_hoplimit,
564567
eth_l3_outer.time_to_live_hop_limit);

0 commit comments

Comments
 (0)