net/mlx5: Move devlink port from mlx5e priv to mlx5e resources
authorRoi Dayan <roid@nvidia.com>
Wed, 28 Oct 2020 09:21:26 +0000 (11:21 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Mar 2021 23:48:41 +0000 (16:48 -0700)
commitc27971d08abecc91f06214dacc66ce3ce2662a44
treecbe3533b393b926c4a5fd04e78b010cdbf02a0be
parentc276aae8c19d65e21a43c2690c7c7dafea0e97fa
net/mlx5: Move devlink port from mlx5e priv to mlx5e resources

We re-use the native NIC port net device instance for the Uplink
representor, and the devlink port.
When changing profiles we reset the mlx5e priv but we should still
use the devlink port so move it to mlx5e resources.

Signed-off-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
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/reporter_rx.c
drivers/net/ethernet/mellanox/mlx5/core/en/reporter_tx.c
drivers/net/ethernet/mellanox/mlx5/core/en_rx.c
include/linux/mlx5/driver.h