From: Andy Moreton Date: Thu, 24 Sep 2020 12:12:34 +0000 (+0100) Subject: common/sfc_efx/base: add option for descriptor proxy queues X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=95d9ae9e37b78757bf0400d49ca2aef5d9dfe431;p=dpdk.git common/sfc_efx/base: add option for descriptor proxy queues EF100 uses descriptor proxy queues to support virtio-blk proxy. Signed-off-by: Andy Moreton Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/common/sfc_efx/base/efx_check.h b/drivers/common/sfc_efx/base/efx_check.h index 40ba57be6f..8f42d87a04 100644 --- a/drivers/common/sfc_efx/base/efx_check.h +++ b/drivers/common/sfc_efx/base/efx_check.h @@ -391,4 +391,14 @@ # endif #endif /* EFSYS_OPT_EV_EXTENDED_WIDTH */ +/* Support descriptor proxy queues */ +#if EFSYS_OPT_DESC_PROXY +# if !EFSYS_OPT_RIVERHEAD +# error "DESC_PROXY requires RIVERHEAD" +# endif +# if !EFSYS_OPT_EV_EXTENDED_WIDTH +# error "DESC_PROXY requires EV_EXTENDED_WIDTH" +# endif +#endif /* EFSYS_OPT_DESC_PROXY */ + #endif /* _SYS_EFX_CHECK_H */ diff --git a/drivers/common/sfc_efx/efsys.h b/drivers/common/sfc_efx/efsys.h index f74b703cda..9ad7c82b86 100644 --- a/drivers/common/sfc_efx/efsys.h +++ b/drivers/common/sfc_efx/efsys.h @@ -165,6 +165,8 @@ prefetch_read_once(const volatile void *addr) #define EFSYS_OPT_PCI 0 +#define EFSYS_OPT_DESC_PROXY 0 + /* ID */ typedef struct __efsys_identifier_s efsys_identifier_t;