vdpa/sfc: fix sync between QEMU and vhost-user
authorAbhimanyu Saini <absaini@amd.com>
Tue, 28 Jun 2022 05:29:26 +0000 (10:59 +0530)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 1 Jul 2022 13:49:49 +0000 (15:49 +0200)
commit2eb13ddea3847fe57653d1ffef1e8e3d9e3cc84c
treea0ae2dda231040096a8bcf5b059dba6b2358f5e6
parent193edd75a94fe8d0d633d1702109779fd7b7d6a0
vdpa/sfc: fix sync between QEMU and vhost-user

When DPDK app is running in the VF, it sometimes rings the doorbell
before dev_config has had a chance to complete and hence it misses
the event. As workaround, ring the doorbell when vDPA reports the
notify_area to QEMU.

Fixes: 630be406dcbf ("vdpa/sfc: get queue notify area info")
Cc: stable@dpdk.org
Signed-off-by: Vijay Kumar Srivastava <vsrivast@xilinx.com>
Signed-off-by: Abhimanyu Saini <absaini@amd.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/sfc/sfc_vdpa_ops.c