For block device, we make sure no IO is inflight before we
stop device. We terminate the notify relay process and wait
for all inflight IOs to be completed. So in this period, we
wait for hardware to update used index, there is no need to
relay new kick.

Signed-off-by: Andy Pei <andy....@intel.com>
---
 drivers/vdpa/ifc/ifcvf_vdpa.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/vdpa/ifc/ifcvf_vdpa.c b/drivers/vdpa/ifc/ifcvf_vdpa.c
index 49d68ad..0822f47 100644
--- a/drivers/vdpa/ifc/ifcvf_vdpa.c
+++ b/drivers/vdpa/ifc/ifcvf_vdpa.c
@@ -367,11 +367,7 @@ struct rte_vdpa_dev_info {
                                        (u16)(ring_state & IFCVF_16_BIT_MASK);
                                hw->vring[i].last_used_idx =
                                        (u16)(ring_state >> 16);
-                               if (hw->vring[i].last_avail_idx !=
-                                       hw->vring[i].last_used_idx) {
-                                       ifcvf_notify_queue(hw, i);
-                                       usleep(10);
-                               }
+                               usleep(10);
                        } while (hw->vring[i].last_avail_idx !=
                                hw->vring[i].last_used_idx);
                }
-- 
1.8.3.1

Reply via email to