[PATCH v3 07/11] vdpa/nfp: setup the VF configure
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Jun 18 10:19:33 CEST 2024
On 6/17/24 08:27, Chaoyong He wrote:
> From: Xinying Yu <xinying.yu at 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.yu at corigine.com>
> Reviewed-by: Chaoyong He <chaoyong.he at corigine.com>
> Reviewed-by: Long Wu <long.wu at corigine.com>
> Reviewed-by: Peng Zhang <peng.zhang at 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.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list