Skip to content

Commit

Permalink
net: mana: Fix the netdev_err()'s vPort argument in mana_init_port()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dexuan Cui authored and David S. Miller committed Nov 1, 2021
1 parent 986d2e3 commit 6c7ea69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/microsoft/mana/mana_en.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 6c7ea69

Please sign in to comment.