mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08:00
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:
parent
986d2e3da7
commit
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user