[dpdk-dev] [PATCH v2 54/60] common/sfc_efx/base: add option for extended width events
Andrew Rybchenko
arybchenko at solarflare.com
Tue Sep 22 11:34:42 CEST 2020
From: Andy Moreton <amoreton at xilinx.com>
EF100 uses event queues with 256bit extended width events to
support descriptor proxy queues.
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 | 7 +++++++
drivers/common/sfc_efx/efsys.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/drivers/common/sfc_efx/base/efx_check.h b/drivers/common/sfc_efx/base/efx_check.h
index f9f97946e5..40ba57be6f 100644
--- a/drivers/common/sfc_efx/base/efx_check.h
+++ b/drivers/common/sfc_efx/base/efx_check.h
@@ -384,4 +384,11 @@
# endif
#endif /* EFSYS_OPT_PCI */
+/* Support extended width event queues */
+#if EFSYS_OPT_EV_EXTENDED_WIDTH
+# if !EFSYS_OPT_RIVERHEAD
+# error "EV_EXTENDED_WIDTH requires RIVERHEAD"
+# endif
+#endif /* EFSYS_OPT_EV_EXTENDED_WIDTH */
+
#endif /* _SYS_EFX_CHECK_H */
diff --git a/drivers/common/sfc_efx/efsys.h b/drivers/common/sfc_efx/efsys.h
index de1c1c38e3..f74b703cda 100644
--- a/drivers/common/sfc_efx/efsys.h
+++ b/drivers/common/sfc_efx/efsys.h
@@ -142,6 +142,7 @@ prefetch_read_once(const volatile void *addr)
#define EFSYS_OPT_FILTER 1
#define EFSYS_OPT_RX_SCATTER 0
+#define EFSYS_OPT_EV_EXTENDED_WIDTH 0
#define EFSYS_OPT_EV_PREFETCH 0
#define EFSYS_OPT_DECODE_INTR_FATAL 0
--
2.17.1
More information about the dev
mailing list