DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ifc: do not notify before HW ready
@ 2018-09-10 11:05 Xiao Wang
  2018-09-13 12:55 ` Ye Xiaolong
  2018-09-14  1:25 ` [dpdk-dev] [PATCH v2] " Xiao Wang
  0 siblings, 2 replies; 10+ messages in thread
From: Xiao Wang @ 2018-09-10 11:05 UTC (permalink / raw)
  To: tiwei.bie; +Cc: dev, xiaolong.ye, Xiao Wang

Fixes: a3f8150eac6d ("net/ifcvf: add ifcvf vDPA driver")

Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
---
 drivers/net/ifc/ifcvf_vdpa.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c
index 3c5430dc0..7d3085d8d 100644
--- a/drivers/net/ifc/ifcvf_vdpa.c
+++ b/drivers/net/ifc/ifcvf_vdpa.c
@@ -503,11 +503,11 @@ update_datapath(struct ifcvf_internal *internal)
 		if (ret)
 			goto err;
 
-		ret = setup_notify_relay(internal);
+		ret = vdpa_ifcvf_start(internal);
 		if (ret)
 			goto err;
 
-		ret = vdpa_ifcvf_start(internal);
+		ret = setup_notify_relay(internal);
 		if (ret)
 			goto err;
 
@@ -515,12 +515,12 @@ update_datapath(struct ifcvf_internal *internal)
 	} else if (rte_atomic32_read(&internal->running) &&
 		   (!rte_atomic32_read(&internal->started) ||
 		    !rte_atomic32_read(&internal->dev_attached))) {
-		vdpa_ifcvf_stop(internal);
-
 		ret = unset_notify_relay(internal);
 		if (ret)
 			goto err;
 
+		vdpa_ifcvf_stop(internal);
+
 		ret = vdpa_disable_vfio_intr(internal);
 		if (ret)
 			goto err;
-- 
2.15.1

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-09-26  7:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-10 11:05 [dpdk-dev] [PATCH] net/ifc: do not notify before HW ready Xiao Wang
2018-09-13 12:55 ` Ye Xiaolong
2018-09-13  7:23   ` Wang, Xiao W
2018-09-13 20:25     ` Ye Xiaolong
2018-09-14  1:25 ` [dpdk-dev] [PATCH v2] " Xiao Wang
2018-09-14  8:41   ` Ye Xiaolong
2018-09-18 14:20     ` Zhang, Qi Z
2018-09-25 17:15   ` Kevin Traynor
2018-09-26  0:12     ` Wang, Xiao W
2018-09-26  7:53       ` Ferruh Yigit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).