]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5e: TC, Reject rules with forward and drop actions
authorRoi Dayan <roid@nvidia.com>
Mon, 17 Jan 2022 13:00:30 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Feb 2022 11:39:56 +0000 (12:39 +0100)
commitc5a4a32fbe4bb93740843828421cea08c47f5bdb
tree5a74e5c3e407b3caab6f95a9944335c0ad15ff8b
parent59879f296a84428fc999e5686b695a6c53f2e2d1
net/mlx5e: TC, Reject rules with forward and drop actions

commit 5623ef8a118838aae65363750dfafcba734dc8cb upstream.

Such rules are redundant but allowed and passed to the driver.
The driver does not support offloading such rules so return an error.

Fixes: 03a9d11e6eeb ("net/mlx5e: Add TC drop and mirred/redirect action parsing for SRIOV offloads")
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@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