]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Register nic devlink port with switch id
authorRoi Dayan <roid@nvidia.com>
Wed, 21 Oct 2020 07:28:50 +0000 (10:28 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Mar 2021 23:48:40 +0000 (16:48 -0700)
commit223c8a16ad865e6d7362ce6aae7fc8f53b3cba1b
treea6e96b6c0d3c3368a1b6866e58e6b72854c4533b
parentf232b2187898c24633d30d7d3ff69fd616430920
net/mlx5e: Register nic devlink port with switch id

We will re-use the native NIC port net device instance for the Uplink
representor. Since the netdev will be kept registered while we engage
switchdev mode also the devlink will be kept registered.
Register the nic devlink port with switch id so it will be available
when changing profiles.

Signed-off-by: Roi Dayan <roid@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/eswitch.h