net/mlx5e: Allocate VLAN and TC for featured profiles only
authorLama Kayal <lkayal@nvidia.com>
Thu, 28 Apr 2022 13:41:20 +0000 (16:41 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 28 Jul 2022 20:55:28 +0000 (13:55 -0700)
commit454533aa87f4472826779bc8a2925548bf1ed4da
treef5f7edd7f0f2d53f825ad529b4928291b959eb87
parent23bde065c3a228e1e65c7ba9495f0b54535bea1a
net/mlx5e: Allocate VLAN and TC for featured profiles only

Introduce allocation and de-allocation functions for both flow steering
VLAN and TC as part of fs API.
Add allocations of VLAN and TC as nic profile feature, such that
fs_init() will allocate both VLAN and TC only if they're featured in
the profile. VLAN and TC are relevant for nic_profile only.

Signed-off-by: Lama Kayal <lkayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c