]> 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>
Thu, 24 Feb 2022 00:08:17 +0000 (16:08 -0800)
commit2397310bf2cb15a13a5b6ccc51d1eb0de528aec8
treef6e5316fdbff438e0da97202d13841daf7f3b5a1
parentff72328f3d95c9831270d7742bd171f54ee9ac77
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: 98be1a90754b ("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