[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211030005408.13932-2-decui@microsoft.com>
Date: Fri, 29 Oct 2021 17:54:05 -0700
From: Dexuan Cui <decui@...rosoft.com>
To: davem@...emloft.net, kuba@...nel.org, gustavoars@...nel.org,
haiyangz@...rosoft.com, netdev@...r.kernel.org
Cc: kys@...rosoft.com, stephen@...workplumber.org, wei.liu@...nel.org,
linux-kernel@...r.kernel.org, linux-hyperv@...r.kernel.org,
shacharr@...rosoft.com, paulros@...rosoft.com, olaf@...fle.de,
vkuznets@...hat.com, Dexuan Cui <decui@...rosoft.com>
Subject: [PATCH net-next 1/4] 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@...rosoft.com>
---
drivers/net/ethernet/microsoft/mana/mana_en.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/microsoft/mana/mana_en.c b/drivers/net/ethernet/microsoft/mana/mana_en.c
index 1417d1e72b7b..4ff5a1fc506f 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;
}
--
2.17.1
Powered by blists - more mailing lists