Skip to content

Commit f85900c

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5e: Err if asked to offload TC match on frag being first
The HW doesn't support matching on frag first/later, return error if we are asked to offload that. Fixes: 3f7d0eb ("net/mlx5e: Offload TC matching on packets being IP fragments") Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Or Gerlitz <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 88d725b commit f85900c

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
@@ -1261,6 +1261,10 @@ static int __parse_cls_flower(struct mlx5e_priv *priv,
12611261
f->mask);
12621262
addr_type = key->addr_type;
12631263

1264+
/* the HW doesn't support frag first/later */
1265+
if (mask->flags & FLOW_DIS_FIRST_FRAG)
1266+
return -EOPNOTSUPP;
1267+
12641268
if (mask->flags & FLOW_DIS_IS_FRAGMENT) {
12651269
MLX5_SET(fte_match_set_lyr_2_4, headers_c, frag, 1);
12661270
MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag,

0 commit comments

Comments
 (0)