summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2021-10-29 17:54:05 -0700
committerDavid S. Miller <davem@davemloft.net>2021-11-01 13:21:49 +0000
commit6c7ea69653e4e5f5faf800cbf51d2285de12e17f (patch)
treedea40813a01b2fcc8fb2e08ff8df248ae65392d0
parent986d2e3da7d7f24c16d419f926c65af1a994a04a (diff)
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>
-rw-r--r--drivers/net/ethernet/microsoft/mana/mana_en.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c
index ef95f4017c6d..46ef9f47d9c5 100644
--- a/drivers/net/ethernet/microsoft/mana/mana_en.c
+++ b/drivers/net/ethernet/microsoft/mana/mana_en.c
@@ -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;
}