From 23370156431239ac850ba2360277d11c19431d0f Mon Sep 17 00:00:00 2001 From: Qi Zhang Date: Tue, 10 Aug 2021 10:51:40 +0800 Subject: [PATCH] net/ice/base: increase maximum TCAM/PTG per profile For GTPoGRE protocol in AVF FDIR/RSS, the number of associated PTGs of one Profile may exceed the defined ICE_MAX_PTG_PER_PROFILE and ICE_MAX_TCAM_PER_PROFILE. In those cases, some PTGs may be missed, and therefore, the related and received packets will not have hash values. Thus, this patch updated the ICE_MAX_PTG_PER_PROFILE and ICE_MAX_TCAM_PER_PROFILE to a larger number 64. Signed-off-by: Junfeng Guo Signed-off-by: Qi Zhang Acked-by: Junfeng Guo --- drivers/net/ice/base/ice_flex_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_flex_type.h b/drivers/net/ice/base/ice_flex_type.h index eb8290713b..247b85a192 100644 --- a/drivers/net/ice/base/ice_flex_type.h +++ b/drivers/net/ice/base/ice_flex_type.h @@ -804,8 +804,8 @@ struct ice_ptg_ptype { u8 ptg; }; -#define ICE_MAX_TCAM_PER_PROFILE 32 -#define ICE_MAX_PTG_PER_PROFILE 32 +#define ICE_MAX_TCAM_PER_PROFILE 64 +#define ICE_MAX_PTG_PER_PROFILE 64 struct ice_prof_map { struct LIST_ENTRY_TYPE list; -- 2.20.1