Skip to contentSkip to conversation

net/ixgbe: fix hardware reset issue in VF

PATCH Applied Wei Zhao 3 participants 4 messages Jan 29, 2018 – Jan 30, 2018 Network drivers

lore
Share & tools
lore

Wei Zhao

author
#0 lore raw

PATCH 1/1 net/ixgbe: fix hardware reset issue in VF

There is no specific handling when there is error happened of hardware reset process in VF device start process.

Fixes 0a45657a6794a ("pci: rework interrupt handling")
---
 drivers/net/ixgbe/ixgbe_ethdev.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/net/ixgbe/ixgbe_ethdev.c +5 -1
index 4f4334d..585c77c 100644
@@ -5001,7 +5001,11 @@ ixgbevf_dev_start(struct rte_eth_dev *dev)
 
 	PMD_INIT_FUNC_TRACE();
 
-	hw->mac.ops.reset_hw(hw);
+	err = hw->mac.ops.reset_hw(hw);
+	if (err) {
+		PMD_INIT_LOG(ERR, "Unable to reset vf hardware (%d)", err);
+		return err;
+	}
 	hw->mac.get_link_status = true;
 
 	/* negotiate mailbox API version to use with the PF. */
Signature · 1 line
2.9.3
Acked-by on v1 1/1
#1 lore raw

Hi,

Quoted 8 lines

-----Original Message-----
From: Zhao1, Wei
Sent: Monday, January 29, 2018 4:07 PM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH] net/ixgbe: fix hardware reset issue in VF

Quoted 5 lines

There is no specific handling when there is error happened of hardware reset process in VF device start process.

Fixes 0a45657a6794a ("pci: rework interrupt handling")

Please cc stable next time if it fixes an old issue. Thanks.

author
#2 lore raw

Ok.

Quoted 25 lines

-----Original Message-----
From: Lu, Wenzhuo
Sent: Tuesday, January 30, 2018 10:25 AM
To: Zhao1, Wei <[email protected]>; [email protected]
Cc: [email protected]
Subject: RE: [PATCH] net/ixgbe: fix hardware reset issue in VF

Hi,

Quoted 8 lines

-----Original Message-----
From: Zhao1, Wei
Sent: Monday, January 29, 2018 4:07 PM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH] net/ixgbe: fix hardware reset issue in VF

Quoted 5 lines

There is no specific handling when there is error happened of hardware reset process in VF device start process.

Fixes 0a45657a6794a ("pci: rework interrupt handling")

Please cc stable next time if it fixes an old issue. Thanks.

Applied
#3 lore raw
In reply to Lu, Wenzhuo
Quoted 19 lines

-----Original Message-----
From: dev [mailto:[email protected]] On Behalf Of Lu, Wenzhuo
Sent: Tuesday, January 30, 2018 10:25 AM
To: Zhao1, Wei; [email protected]
Cc: [email protected]
Subject: Re: [dpdk-dev] [PATCH] net/ixgbe: fix hardware reset issue in VF

Hi,

Quoted 8 lines

-----Original Message-----
From: Zhao1, Wei
Sent: Monday, January 29, 2018 4:07 PM
To: [email protected]
Cc: Lu, Wenzhuo <[email protected]>; Zhao1, Wei <[email protected]>
Subject: [PATCH] net/ixgbe: fix hardware reset issue in VF

Quoted 6 lines
Quoted 5 lines

There is no specific handling when there is error happened of hardware reset process in VF device start process.

Fixes 0a45657a6794a ("pci: rework interrupt handling")

Applied to dpdk-next-net-intel, with commit log changes, thanks!

/Helin

Quoted 2 lines

Please cc stable next time if it fixes an old issue. Thanks.