diff mbox series

[v5,20/22] net/bnxt: remove 2 slice wildcard entries

Message ID 20211104215846.58672-21-ajit.khaparde@broadcom.com (mailing list archive)
State Accepted, archived
Delegated to: Ajit Khaparde
Headers show
Series fixes and enhancements to Truflow | expand

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Ajit Khaparde Nov. 4, 2021, 9:58 p.m. UTC
From: Mike Baucom <michael.baucom@broadcom.com>

Remove 2-slice wildcard entries for scale.
The type-5 wildcard IPv6 flows are removed in order to increase
the scale for app-id=3.
The app no longer supports 2-slice wildcard entries.

Signed-off-by: Mike Baucom <michael.baucom@broadcom.com>
Signed-off-by: Venkat Duvvuru <venkatkumar.duvvuru@broadcom.com>
Reviewed-by: Kishore Padmanabha <kishore.padmanabha@broadcom.com>
Reviewed-by: Randy Schacher <stuart.schacher@broadcom.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
---
 drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c
index b64279710b..fd211bbc3f 100644
--- a/drivers/net/bnxt/tf_ulp/bnxt_ulp.c
+++ b/drivers/net/bnxt/tf_ulp/bnxt_ulp.c
@@ -462,7 +462,7 @@  ulp_ctx_shared_session_open(struct bnxt *bp,
 
 	parms.shadow_copy = true;
 	parms.bp = bp;
-	if (app_id == 0 || app_id == 3)
+	if (app_id == 0)
 		parms.wc_num_slices = TF_WC_TCAM_2_SLICE_PER_ROW;
 	else
 		parms.wc_num_slices = TF_WC_TCAM_1_SLICE_PER_ROW;
@@ -584,7 +584,7 @@  ulp_ctx_session_open(struct bnxt *bp,
 		return rc;
 
 	params.bp = bp;
-	if (app_id == 0 || app_id == 3)
+	if (app_id == 0)
 		params.wc_num_slices = TF_WC_TCAM_2_SLICE_PER_ROW;
 	else
 		params.wc_num_slices = TF_WC_TCAM_1_SLICE_PER_ROW;