All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ratheesh Kannoth <rkannoth@marvell.com>
To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <sgoutham@marvell.com>, <davem@davemloft.net>,
	<edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>,
	Ratheesh Kannoth <rkannoth@marvell.com>
Subject: [net-next PATCH v5 12/12] octeontx2-af: Enable Exact match flag in kex profile
Date: Fri, 8 Jul 2022 10:11:51 +0530	[thread overview]
Message-ID: <20220708044151.2972645-13-rkannoth@marvell.com> (raw)
In-Reply-To: <20220708044151.2972645-1-rkannoth@marvell.com>

Enabled EXACT match flag in Kex default profile. Since
there is no space in key, NPC_PARSE_NIBBLE_ERRCODE
is removed

Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
---
 drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h b/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h
index 4180376fa676..a820bad3abb2 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h
+++ b/drivers/net/ethernet/marvell/octeontx2/af/npc_profile.h
@@ -155,7 +155,7 @@
 
 /* Rx parse key extract nibble enable */
 #define NPC_PARSE_NIBBLE_INTF_RX	(NPC_PARSE_NIBBLE_CHAN | \
-					 NPC_PARSE_NIBBLE_ERRCODE | \
+					 NPC_PARSE_NIBBLE_L2L3_BCAST | \
 					 NPC_PARSE_NIBBLE_LA_LTYPE | \
 					 NPC_PARSE_NIBBLE_LB_LTYPE | \
 					 NPC_PARSE_NIBBLE_LC_LTYPE | \
@@ -15123,7 +15123,8 @@ static struct npc_mcam_kex npc_mkex_default = {
 	.kpu_version = NPC_KPU_PROFILE_VER,
 	.keyx_cfg = {
 		/* nibble: LA..LE (ltype only) + Error code + Channel */
-		[NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_RX,
+		[NIX_INTF_RX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_RX |
+						(u64)NPC_EXACT_NIBBLE_HIT,
 		/* nibble: LA..LE (ltype only) */
 		[NIX_INTF_TX] = ((u64)NPC_MCAM_KEY_X2 << 32) | NPC_PARSE_NIBBLE_INTF_TX,
 	},
-- 
2.25.1


  parent reply	other threads:[~2022-07-08  4:44 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-08  4:41 [net-next PATCH v5 00/12] octeontx2: Exact Match Table Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 01/12] octeontx2-af: Use hashed field in MCAM key Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 02/12] octeontx2-af: Exact match support Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 03/12] octeontx2-af: Exact match scan from kex profile Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 04/12] octeontx2-af: devlink configuration support Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 05/12] octeontx2-af: FLR handler for exact match table Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 06/12] octeontx2-af: Drop rules for NPC MCAM Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 07/12] octeontx2-af: Debugsfs support for exact match Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 08/12] octeontx2: Modify mbox request and response structures Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 09/12] octeontx2-af: Wrapper functions for MAC addr add/del/update/reset Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 10/12] octeontx2-af: Invoke exact match functions if supported Ratheesh Kannoth
2022-07-08  4:41 ` [net-next PATCH v5 11/12] octeontx2-pf: Add support for exact match table Ratheesh Kannoth
2022-07-08  4:41 ` Ratheesh Kannoth [this message]
2022-07-10 18:22 ` [net-next PATCH v5 00/12] octeontx2: Exact Match Table patchwork-bot+netdevbpf
2022-07-11  5:08   ` [EXT] " Ratheesh Kannoth
2022-07-11 17:54     ` Jakub Kicinski
2022-07-11 18:00 ` patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220708044151.2972645-13-rkannoth@marvell.com \
    --to=rkannoth@marvell.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=sgoutham@marvell.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.