]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
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)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:16 +0000 (19:23 +0200)
commit0391735f795a7ac4db5a55000cb5553960a67c19
tree00a35e611c308d2c1e3614b076a1a43b8db5fa2f
parent74196a18b08b78b417f205f91f423f65706edd53
net/mlx5e: Check for needed capability for cvlan matching

BugLink: https://bugs.launchpad.net/bugs/1933691
[ Upstream commit afe93f71b5d3cdae7209213ec8ef25210b837b93 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c