[dpdk-dev] [PATCH v2 50/62] common/sfc_efx/base: add MAE match fields for IPv6

Andrew Rybchenko arybchenko at solarflare.com
Tue Oct 20 11:13:30 CEST 2020


From: Ivan Malov <ivan.malov at oktetlabs.ru>

Add MCDI-compatible enumeration for these fields and
provide necessary mappings for them to be inserted
directly into mask-value pairs buffer.

Signed-off-by: Ivan Malov <ivan.malov at oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko at solarflare.com>
Reviewed-by: Andy Moreton <amoreton at xilinx.com>
---
 drivers/common/sfc_efx/base/efx.h     | 2 ++
 drivers/common/sfc_efx/base/efx_mae.c | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/common/sfc_efx/base/efx.h
index ed15e5e0d5..16927eb910 100644
--- a/drivers/common/sfc_efx/base/efx.h
+++ b/drivers/common/sfc_efx/base/efx.h
@@ -4112,6 +4112,8 @@ typedef enum efx_mae_field_id_e {
 	EFX_MAE_FIELD_IP_PROTO,
 	EFX_MAE_FIELD_IP_TOS,
 	EFX_MAE_FIELD_IP_TTL,
+	EFX_MAE_FIELD_SRC_IP6_BE,
+	EFX_MAE_FIELD_DST_IP6_BE,
 
 	EFX_MAE_FIELD_NIDS
 } efx_mae_field_id_t;
diff --git a/drivers/common/sfc_efx/base/efx_mae.c b/drivers/common/sfc_efx/base/efx_mae.c
index 5843a52569..c015b4c471 100644
--- a/drivers/common/sfc_efx/base/efx_mae.c
+++ b/drivers/common/sfc_efx/base/efx_mae.c
@@ -295,6 +295,8 @@ typedef enum efx_mae_field_cap_id_e {
 	EFX_MAE_FIELD_ID_IP_PROTO = MAE_FIELD_IP_PROTO,
 	EFX_MAE_FIELD_ID_IP_TOS = MAE_FIELD_IP_TOS,
 	EFX_MAE_FIELD_ID_IP_TTL = MAE_FIELD_IP_TTL,
+	EFX_MAE_FIELD_ID_SRC_IP6_BE = MAE_FIELD_SRC_IP6,
+	EFX_MAE_FIELD_ID_DST_IP6_BE = MAE_FIELD_DST_IP6,
 
 	EFX_MAE_FIELD_CAP_NIDS
 } efx_mae_field_cap_id_t;
@@ -349,6 +351,8 @@ static const efx_mae_mv_desc_t __efx_mae_action_rule_mv_desc_set[] = {
 	EFX_MAE_MV_DESC(IP_PROTO, EFX_MAE_FIELD_BE),
 	EFX_MAE_MV_DESC(IP_TOS, EFX_MAE_FIELD_BE),
 	EFX_MAE_MV_DESC(IP_TTL, EFX_MAE_FIELD_BE),
+	EFX_MAE_MV_DESC(SRC_IP6_BE, EFX_MAE_FIELD_BE),
+	EFX_MAE_MV_DESC(DST_IP6_BE, EFX_MAE_FIELD_BE),
 
 #undef EFX_MAE_MV_DESC
 };
-- 
2.17.1



More information about the dev mailing list