]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:34:55 +0000 (16:34 +0200)
commit42e21e0a588de8a4234aff0d1d1c98bbaeb48eef
treef3220fa957b64fd0ce9ab1e4c88146f957a67f1a
parentd830a3e46c1993488f2021eae8374973da55d380
net/mlx5e: TC, Reject rules with drop and modify hdr action

[ Upstream commit 5a38f703c12c4f4dd92e6d6cfa7a3e62ebb17831 ]

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: 3a69c7dedbe4 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c