net/mlx5e: Create auxdev devlink instance in the same ns as parent devlink
authorJiri Pirko <jiri@nvidia.com>
Thu, 26 Jan 2023 09:46:49 +0000 (10:46 +0100)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 14 Feb 2023 22:08:27 +0000 (14:08 -0800)
commitde411a8226df165a8cab9a426ceaaaafa9304ab9
tree6a040910510635b0fc96f2eaa42e6953a9fa8fa8
parent6d6e71e6e5e3713d18c87b16af774b7db51a68c3
net/mlx5e: Create auxdev devlink instance in the same ns as parent devlink

Commit cited in "fixes" tag moved the devlink port under separate
devlink entity created for auxiliary device. Respect the network
namespace of parent devlink entity and allocate the devlink there.

Fixes: ee75f1fc44dd ("net/mlx5e: Create separate devlink instance for ethernet auxiliary device")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/devlink.c
drivers/net/ethernet/mellanox/mlx5/core/en/devlink.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c