net/mlx5e: Check for needed capability for cvlan matching
authorRoi Dayan <roid@nvidia.com>
Tue, 13 Apr 2021 11:35:22 +0000 (14:35 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 2 Jun 2021 01:30:20 +0000 (18:30 -0700)
commitafe93f71b5d3cdae7209213ec8ef25210b837b93
treecb9e26f1a7c7e0ab6bc9e208b5c6abdfdd40ed91
parent5940e64281c09976ce2b560244217e610bf9d029
net/mlx5e: Check for needed capability for cvlan matching

If not supported show an error and return instead of trying to offload
to the hardware and fail.

Fixes: 699e96ddf47f ("net/mlx5e: Support offloading tc double vlan headers match")
Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c