On 6/17/24 08:27, Chaoyong He wrote:
From: Xinying Yu <[email protected]>

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 <[email protected]>
Reviewed-by: Chaoyong He <[email protected]>
Reviewed-by: Long Wu <[email protected]>
Reviewed-by: Peng Zhang <[email protected]>
---
  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 <[email protected]>

Thanks,
Maxime

Reply via email to