]> git.baikalelectronics.ru Git - kernel.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)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Feb 2022 04:59:40 +0000 (20:59 -0800)
commit8c22678d322250390fe875732e69fa75466d9e8d
treec4d96c543783d57cd40d9d43cf2b89cc2c1ac862
parent1a5818b7d7eb6346313526b36107c2c8da5f6d42
net/mlx5e: TC, Reject rules with forward and drop actions

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

Fixes: acfaf192c274 ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c