diff options
author | Shalom Toledo <shalomt@mellanox.com> | 2019-09-16 18:04:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-16 23:07:59 +0300 |
commit | 28b1987ef5064dd5c43538ba1168ef7b801f3cad (patch) | |
tree | 136f24edd4cf7087a49b18a62419e1d6bb6cbca6 /drivers/net/ethernet/mellanox/mlxsw/core.h | |
parent | 9d0aa053ea68cdf1ee68dc1e558f9e525d76b2ea (diff) | |
download | linux-28b1987ef5064dd5c43538ba1168ef7b801f3cad.tar.xz |
mlxsw: spectrum: Register CPU port with devlink
Register CPU port with devlink.
Signed-off-by: Shalom Toledo <shalomt@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h index b65a17d49e43..5d7d2ab6d155 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core.h @@ -177,6 +177,11 @@ int mlxsw_core_port_init(struct mlxsw_core *mlxsw_core, u8 local_port, const unsigned char *switch_id, unsigned char switch_id_len); void mlxsw_core_port_fini(struct mlxsw_core *mlxsw_core, u8 local_port); +int mlxsw_core_cpu_port_init(struct mlxsw_core *mlxsw_core, + void *port_driver_priv, + const unsigned char *switch_id, + unsigned char switch_id_len); +void mlxsw_core_cpu_port_fini(struct mlxsw_core *mlxsw_core); void mlxsw_core_port_eth_set(struct mlxsw_core *mlxsw_core, u8 local_port, void *port_driver_priv, struct net_device *dev); void mlxsw_core_port_ib_set(struct mlxsw_core *mlxsw_core, u8 local_port, |