net: mana: Fix the netdev_err()'s vPort argument in mana_init_port()
Use the correct port index rather than 0. Signed-off-by: Dexuan Cui <decui@microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Родитель
986d2e3da7
Коммит
6c7ea69653
|
@ -1599,7 +1599,8 @@ static int mana_init_port(struct net_device *ndev)
|
|||
err = mana_query_vport_cfg(apc, port_idx, &max_txq, &max_rxq,
|
||||
&num_indirect_entries);
|
||||
if (err) {
|
||||
netdev_err(ndev, "Failed to query info for vPort 0\n");
|
||||
netdev_err(ndev, "Failed to query info for vPort %d\n",
|
||||
port_idx);
|
||||
goto reset_apc;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче