From: Ivan Malov <ivan.ma...@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.ma...@oktetlabs.ru> Signed-off-by: Andrew Rybchenko <arybche...@solarflare.com> Reviewed-by: Andy Moreton <amore...@xilinx.com> --- drivers/common/sfc_efx/base/efx.h | 3 +++ drivers/common/sfc_efx/base/efx_mae.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/drivers/common/sfc_efx/base/efx.h b/drivers/common/sfc_efx/base/efx.h index 16927eb910..b84a43336a 100644 --- a/drivers/common/sfc_efx/base/efx.h +++ b/drivers/common/sfc_efx/base/efx.h @@ -4114,6 +4114,9 @@ typedef enum efx_mae_field_id_e { EFX_MAE_FIELD_IP_TTL, EFX_MAE_FIELD_SRC_IP6_BE, EFX_MAE_FIELD_DST_IP6_BE, + EFX_MAE_FIELD_L4_SPORT_BE, + EFX_MAE_FIELD_L4_DPORT_BE, + EFX_MAE_FIELD_TCP_FLAGS_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 c015b4c471..7958504963 100644 --- a/drivers/common/sfc_efx/base/efx_mae.c +++ b/drivers/common/sfc_efx/base/efx_mae.c @@ -297,6 +297,9 @@ typedef enum efx_mae_field_cap_id_e { 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_ID_L4_SPORT_BE = MAE_FIELD_L4_SPORT, + EFX_MAE_FIELD_ID_L4_DPORT_BE = MAE_FIELD_L4_DPORT, + EFX_MAE_FIELD_ID_TCP_FLAGS_BE = MAE_FIELD_TCP_FLAGS, EFX_MAE_FIELD_CAP_NIDS } efx_mae_field_cap_id_t; @@ -353,6 +356,9 @@ static const efx_mae_mv_desc_t __efx_mae_action_rule_mv_desc_set[] = { 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), + EFX_MAE_MV_DESC(L4_SPORT_BE, EFX_MAE_FIELD_BE), + EFX_MAE_MV_DESC(L4_DPORT_BE, EFX_MAE_FIELD_BE), + EFX_MAE_MV_DESC(TCP_FLAGS_BE, EFX_MAE_FIELD_BE), #undef EFX_MAE_MV_DESC }; -- 2.17.1