]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Sat, 5 Feb 2022 11:39:55 +0000 (12:39 +0100)
commit5ddd37044b9e6f93e66acc48c49593cb49b35bda
treed3299c45f29bccdeada0cdcc3f342af70e2ef634
parent15184af88d8ab02cd34bc4b18c83b6cd798079c6
net/mlx5e: TC, Reject rules with drop and modify hdr action

commit a2446bc77a16cefd27de712d28af2396d6287593 upstream.

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: d7e75a325cb2 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c