mirror of https://gitee.com/openkylin/linux.git
bnxt: 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>
This commit is contained in:
parent
03213a9965
commit
6605a22678
|
@ -230,7 +230,8 @@ int bnxt_dl_register(struct bnxt *bp)
|
|||
}
|
||||
|
||||
devlink_port_attrs_set(&bp->dl_port, DEVLINK_PORT_FLAVOUR_PHYSICAL,
|
||||
bp->pf.port_id, false, 0, NULL, 0);
|
||||
bp->pf.port_id, false, 0,
|
||||
bp->switch_id, sizeof(bp->switch_id));
|
||||
rc = devlink_port_register(dl, &bp->dl_port, bp->pf.port_id);
|
||||
if (rc) {
|
||||
netdev_err(bp->dev, "devlink_port_register failed");
|
||||
|
|
Loading…
Reference in New Issue