net/ifc: fix used ring update
authorXiao Wang <xiao.w.wang@intel.com>
Mon, 15 Apr 2019 07:56:25 +0000 (15:56 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:54 +0000 (14:51 +0200)
commit9cdbd048cabf070240df5e78b17d8295b46e604a
tree7df5b42015020b5f0d7faa06f8e239912a6df102
parent8fda27b181ff71c4deea9a2fa2c4a9ea93af2175
net/ifc: fix used ring update

The vring relay thread is created after HW datapath start and is
canceled before HW datapath stop, so we need to take care of the
ring update when the relay thread is not on duty.

Fixes: 4bb531e152d3 ("net/ifc: support SW assisted VDPA live migration")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
drivers/net/ifc/ifcvf_vdpa.c