]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TC, Reject rules with drop and modify hdr action
authorRoi Dayan <roid@nvidia.com>
Tue, 4 Jan 2022 08:38:02 +0000 (10:38 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Feb 2022 04:59:39 +0000 (20:59 -0800)
commit342a961258ae5705a658375e07729f1e8a52e912
tree05bb740656ce4290843884ac54a22ddb8aca52a2
parent89730ccc1383bdf07de29e1fd7d2d7a50f2691ac
net/mlx5e: TC, Reject rules with drop and modify hdr action

This kind of action is not supported by firmware and generates 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)

Fixes: ace28bfec3f0 ("net/mlx5e: Add offloading of E-Switch TC pedit (header re-write) actions")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Reviewed-by: Maor Dickman <maord@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c