[v3,59/60] common/sfc_efx/base: add option for descriptor proxy queues

Message ID 1600949555-28043-60-git-send-email-arybchenko@solarflare.com (mailing list archive)
State Accepted, archived
Delegated to: Ferruh Yigit
Headers
Series common/sfc_efx: support Riverhead NIC family |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Andrew Rybchenko Sept. 24, 2020, 12:12 p.m. UTC
  From: Andy Moreton <amoreton@xilinx.com>

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 | 10 ++++++++++
 drivers/common/sfc_efx/efsys.h          |  2 ++
 2 files changed, 12 insertions(+)
  

Patch

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;