]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
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)
commit5a65d85dc7f4532755750aab645c46a47219fd1a
treea6e96b6c0d3c3368a1b6866e58e6b72854c4533b
parent865d6d1c2df8e60260499efba2cd0537fdb8ca72
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