On 6/17/24 08:27, Chaoyong He wrote:
From: Xinying Yu <xinying...@corigine.com>

Create the relay vring on host and then set the address of Rx
used ring to the VF config bar. So the device can DMA the
used ring information to host rather than directly to VM.

Use 'NFP_NET_CFG_CTRL_LM_RELAY' notify the device side. And
enable the MSIX interrupt on device.

Tx ring address is not needed to change since the relay vring
only assists Rx ring to do the dirty page logging.

Signed-off-by: Xinying Yu <xinying...@corigine.com>
Reviewed-by: Chaoyong He <chaoyong...@corigine.com>
Reviewed-by: Long Wu <long...@corigine.com>
Reviewed-by: Peng Zhang <peng.zh...@corigine.com>
---
  drivers/common/nfp/nfp_common_ctrl.h |   3 +
  drivers/vdpa/nfp/nfp_vdpa.c          | 203 ++++++++++++++++++++++++---
  drivers/vdpa/nfp/nfp_vdpa_core.c     |  55 ++++++--
  drivers/vdpa/nfp/nfp_vdpa_core.h     |   8 ++
  4 files changed, 239 insertions(+), 30 deletions(-)


Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>

Thanks,
Maxime

Reply via email to