Skip to content

Commit 5b209d1

Browse files
roidayanSaeed Mahameed
authored andcommitted
net/mlx5e: Avoid implicit modify hdr for decap drop rule
Currently the driver adds implicit modify hdr action for decap rules on tunnel devices if the port is an ovs port. This is also done if the action is drop and makes the modify hdr redundant and also the FW doesn't support it and will generate a syndrome. kernel: mlx5_core 0000:08:00.0: mlx5_cmd_check:777:(pid 102063): SET_FLOW_TABLE_ENTRY(0x936) op_mod(0x0) failed, status bad parameter(0x3), syndrome (0x8708c3) Fix it by adding the implicit modify hdr only for fwd actions. Fixes: b16eb3c ("net/mlx5: Support internal port as decap route device") Fixes: 077cdda ("net/mlx5e: TC, Fix memory leak with rules with internal port") Signed-off-by: Roi Dayan <[email protected]> Reviewed-by: Ariel Levkovich <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent de47db0 commit 5b209d1

File tree

1 file changed

+2
-1
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,8 @@ mlx5e_tc_add_fdb_flow(struct mlx5e_priv *priv,
14141414
if (err)
14151415
goto err_out;
14161416

1417-
if (!attr->chain && esw_attr->int_port) {
1417+
if (!attr->chain && esw_attr->int_port &&
1418+
attr->action & MLX5_FLOW_CONTEXT_ACTION_FWD_DEST) {
14181419
/* If decap route device is internal port, change the
14191420
* source vport value in reg_c0 back to uplink just in
14201421
* case the rule performs goto chain > 0. If we have a miss

0 commit comments

Comments
 (0)