Skip to content
Commit aec707a0 authored by Huy Nguyen's avatar Huy Nguyen Committed by Sasha Levin
Browse files

net/mlx5e: Remove dependency in IPsec initialization flows

[ Upstream commit 8ad893e5 ]

Currently, IPsec feature is disabled because mlx5e_build_nic_netdev
is required to be called after mlx5e_ipsec_init. This requirement is
invalid as mlx5e_build_nic_netdev and mlx5e_ipsec_init initialize
independent resources.

Remove ipsec pointer check in mlx5e_build_nic_netdev so that the
two functions can be called at any order.

Fixes: 547eede0

 ("net/mlx5e: IPSec, Innova IPSec offload infrastructure")
Signed-off-by: default avatarHuy Nguyen <huyn@nvidia.com>
Reviewed-by: default avatarRaed Salem <raeds@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ba14e0b4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment