diff options
author | Jiri Pirko <jiri@mellanox.com> | 2019-04-03 15:24:18 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-04-05 03:42:36 +0300 |
commit | cdf29f4a262527feb11cd0071f0b3cedceaba745 (patch) | |
tree | d4842d38f7478593e24ddf0868d063901b182749 /drivers/net/ethernet/mellanox/mlxsw/minimal.c | |
parent | 7e1146e8c10c00f859843817da8ecc5d902ea409 (diff) | |
download | linux-cdf29f4a262527feb11cd0071f0b3cedceaba745.tar.xz |
mlxsw: Pass switch ID through devlink_port_attrs_set()
Pass the switch ID down the to devlink through devlink_port_attrs_set()
so it can be used by devlink_compat_switch_id_get().
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/minimal.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/minimal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/minimal.c b/drivers/net/ethernet/mellanox/mlxsw/minimal.c index ec5f5a66b607..bd96211602a4 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/minimal.c +++ b/drivers/net/ethernet/mellanox/mlxsw/minimal.c @@ -151,7 +151,9 @@ mlxsw_m_port_create(struct mlxsw_m *mlxsw_m, u8 local_port, u8 module) int err; err = mlxsw_core_port_init(mlxsw_m->core, local_port, - module + 1, false, 0); + module + 1, false, 0, + mlxsw_m->base_mac, + sizeof(mlxsw_m->base_mac)); if (err) { dev_err(mlxsw_m->bus_info->dev, "Port %d: Failed to init core port\n", local_port); |