[PATCH v2 147/148] net/ice: update rss lut value for RSS init

Anatoly Burakov anatoly.burakov at intel.com
Wed Jun 12 17:02:21 CEST 2024


From: istokes <ian.stokes at intel.com>

Latest shared code update changes the requirements for size definition
of rss_lut which now varies by type.

Previously it was limited to 512 even if the capabalities were greater.
With the lastest shared code update for PF type this will be 2048 and
will fail to initialise if less than this.

Signed-off-by: Ian Stokes <ian.stokes at intel.com>
---
 drivers/net/ice/ice_ethdev.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 5c1d83e605..19f6a3c148 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -1609,9 +1609,7 @@ ice_setup_vsi(struct ice_pf *pf, enum ice_vsi_type type)
 	TAILQ_INIT(&vsi->vlan_list);
 
 	/* Be sync with RTE_ETH_RSS_RETA_SIZE_x maximum value definition */
-	pf->hash_lut_size = hw->func_caps.common_cap.rss_table_size >
-			RTE_ETH_RSS_RETA_SIZE_512 ? RTE_ETH_RSS_RETA_SIZE_512 :
-			hw->func_caps.common_cap.rss_table_size;
+	pf->hash_lut_size = hw->func_caps.common_cap.rss_table_size;
 	pf->flags |= ICE_FLAG_RSS_AQ_CAPABLE;
 
 	/* Defines the type of outer tag expected */
-- 
2.43.0



More information about the dev mailing list