]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net/mlx5e: Check if inner FT is supported outside of create/destroy functions
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Tue, 13 Apr 2021 14:06:45 +0000 (17:06 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 26 Jul 2021 16:50:37 +0000 (09:50 -0700)
commitbc5506a166c3d118f7b0a96e5e3dbbbb48ac29ed
tree36eff6af2a77ee27fc7548e22aa585b89695e592
parent69994ef3da660af4ff22c740f85dc291a50a6440
net/mlx5e: Check if inner FT is supported outside of create/destroy functions

Move the mlx5e_tunnel_inner_ft_supported() check for inner flow tables
support outside of mlx5e_create_inner_ttc_table() and
mlx5e_destroy_inner_ttc_table(). It allows to avoid accessing invalid
TIRNs of inner indirect TIRs. In a later commit these accesses will be
replaced by getters that will WARN if inner indirect TIRs don't exist.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_fs.c