Skip to content

Commit b5e3c76

Browse files
kliteynkuba-moo
authored andcommitted
net/mlx5: HWS, fix missing ip_version handling in definer
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]>
1 parent a002602 commit b5e3c76

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
@@ -785,6 +785,9 @@ hws_definer_conv_outer(struct mlx5hws_definer_conv_data *cd,
785785
HWS_SET_HDR(fc, match_param, IP_PROTOCOL_O,
786786
outer_headers.ip_protocol,
787787
eth_l3_outer.protocol_next_header);
788+
HWS_SET_HDR(fc, match_param, IP_VERSION_O,
789+
outer_headers.ip_version,
790+
eth_l3_outer.ip_version);
788791
HWS_SET_HDR(fc, match_param, IP_TTL_O,
789792
outer_headers.ttl_hoplimit,
790793
eth_l3_outer.time_to_live_hop_limit);

0 commit comments

Comments
 (0)