mirror of https://gitee.com/openkylin/linux.git
bnxt: set devlink port attrs properly
Set the attrs properly so delink has enough info to generate physical port names. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
402f99e550
commit
a0e18132ec
|
@ -229,6 +229,8 @@ int bnxt_dl_register(struct bnxt *bp)
|
|||
goto err_dl_unreg;
|
||||
}
|
||||
|
||||
devlink_port_attrs_set(&bp->dl_port, DEVLINK_PORT_FLAVOUR_PHYSICAL,
|
||||
bp->pf.port_id, false, 0);
|
||||
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