[dpdk-dev] [PATCH v4 1/8] common/sfc_efx/base: add base virtio support for vDPA

Ferruh Yigit ferruh.yigit at intel.com
Tue Mar 16 12:30:48 CET 2021


On 3/16/2021 8:58 AM, Andrew Rybchenko wrote:
> From: Vijay Srivastava <vijays at solarflare.com>
> 
> In the vDPA mode, only data path is offloaded in the hardware and
> control path still goes through the hypervisor and it configures
> virtqueues via vDPA driver so new virtqueue APIs are required.
> 
> Implement virtio init/fini and virtqueue create/destroy APIs.
> 
> Signed-off-by: Vijay Srivastava <vijays at solarflare.com>
> Signed-off-by: Andrew Rybchenko <andrew.rybchenko at oktetlabs.ru>

<...>

> diff --git a/drivers/common/sfc_efx/efsys.h b/drivers/common/sfc_efx/efsys.h
> index 663601412e..d133d61b3d 100644
> --- a/drivers/common/sfc_efx/efsys.h
> +++ b/drivers/common/sfc_efx/efsys.h
> @@ -187,6 +187,8 @@ prefetch_read_once(const volatile void *addr)
>   
>   #define EFSYS_OPT_MAE 1
>   
> +#define EFSYS_OPT_VIRTIO 0
> +

Hi Andrew,

How this 'efsys.h' works, is it compile time configuration file for the driver?
Is is expected that users change this file?


More information about the dev mailing list