Skip to content

Commit 0827444

Browse files
ogerlitzdavem330
authored andcommitted
net/mlx5e: Set inline mode requirements for matching on IP fragments
For e-switch level matching on packets being an IP fragment, we need to make sure the source vport inline mode is L3, fix that. Fixes: 3f7d0eb ('net/mlx5e: Offload TC matching on packets being IP fragments') Signed-off-by: Or Gerlitz <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2e72eb4 commit 0827444

File tree

1 file changed

+4
-0
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+4
-0
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en_tc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ static int __parse_cls_flower(struct mlx5e_priv *priv,
389389
MLX5_SET(fte_match_set_lyr_2_4, headers_c, frag, 1);
390390
MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag,
391391
key->flags & FLOW_DIS_IS_FRAGMENT);
392+
393+
/* the HW doesn't need L3 inline to match on frag=no */
394+
if (key->flags & FLOW_DIS_IS_FRAGMENT)
395+
*min_inline = MLX5_INLINE_MODE_IP;
392396
}
393397
}
394398

0 commit comments

Comments
 (0)