[dpdk-dev] [PATCH v3 59/60] common/sfc_efx/base: add option for descriptor proxy queues

Andrew Rybchenko arybchenko at solarflare.com
Thu Sep 24 14:12:34 CEST 2020


From: Andy Moreton <amoreton at xilinx.com>

EF100 uses descriptor proxy queues to support virtio-blk proxy.

Signed-off-by: Andy Moreton <amoreton at xilinx.com>
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
---
 drivers/common/sfc_efx/base/efx_check.h | 10 ++++++++++
 drivers/common/sfc_efx/efsys.h          |  2 ++
 2 files changed, 12 insertions(+)

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;
-- 
2.17.1



More information about the dev mailing list