mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue