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

Message ID 19b90d5118b4ca5585c2acf3c75b07adbca0a8b1.1718204529.git.anatoly.burakov@intel.com (mailing list archive)
State Superseded, archived
Delegated to: Bruce Richardson
Headers
Series Update net/ice base driver to latest upstream snapshot |

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Burakov, Anatoly June 12, 2024, 3:02 p.m. UTC
From: istokes <ian.stokes@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@intel.com>
---
 drivers/net/ice/ice_ethdev.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
  

Patch

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 */