]> git.droids-corp.org - dpdk.git/commitdiff
common/sfc_efx/base: add option for descriptor proxy queues
authorAndy Moreton <amoreton@xilinx.com>
Thu, 24 Sep 2020 12:12:34 +0000 (13:12 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:13 +0000 (19:19 +0200)
EF100 uses descriptor proxy queues to support virtio-blk proxy.

Signed-off-by: Andy Moreton <amoreton@xilinx.com>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/common/sfc_efx/base/efx_check.h
drivers/common/sfc_efx/efsys.h

index 40ba57be6fc75243217d3dc7a3943d6964d7c107..8f42d87a04efc5914bb2fd33149aeb889db4befb 100644 (file)
 # 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 */
index f74b703cda1a03f78b942f220c215fad1dba639f..9ad7c82b86881b2def3eab5b34f242bf56be27d5 100644 (file)
@@ -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;