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 40ba57b..8f42d87 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 f74b703..9ad7c82 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;