OSDN Git Service

mlxsw: switch_ib: Pass valid HW id down to mlxsw_core_port_init()
authorJiri Pirko <jiri@mellanox.com>
Wed, 3 Apr 2019 12:24:25 +0000 (14:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Apr 2019 00:42:36 +0000 (17:42 -0700)
commitdf535f4c47a60fd6bf8f1327e9f87628e581e136
tree87de2060cd847ac110ee8cde152cdab0e70b1818
parentc25f08ac65e4e6a308babd2b39d89b362e9086c6
mlxsw: switch_ib: Pass valid HW id down to mlxsw_core_port_init()

Obtain HW id and pass it down to mlxsw_core_port_init() as it would be
used as switch_id in devlink and exposed to user.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/switchib.c