mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sai Krishna <saikrishnag@marvell.com>
To: <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>,
	<pabeni@redhat.com>, <netdev@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <simon.horman@corigine.com>,
	<leon@kernel.org>, <sgoutham@marvell.com>, <gakula@marvell.com>,
	<lcherian@marvell.com>, <jerinj@marvell.com>,
	<hkelam@marvell.com>, <sbhatta@marvell.com>
Cc: Ratheesh Kannoth <rkannoth@marvell.com>,
	Sai Krishna <saikrishnag@marvell.com>
Subject: [net PATCH v4 02/10] octeontx2-af: Fix start and end bit for scan config
Date: Wed, 26 Apr 2023 13:13:37 +0530	[thread overview]
Message-ID: <20230426074345.750135-3-saikrishnag@marvell.com> (raw)
In-Reply-To: <20230426074345.750135-1-saikrishnag@marvell.com>

From: Ratheesh Kannoth <rkannoth@marvell.com>

In the current driver, NPC exact match feature was not getting
enabled as configured bit was not read properly.
for_each_set_bit_from() need end bit as one bit post
position in the bit map to read NPC exact nibble enable
bits properly. This patch fixes the same.

Fixes: b747923afff8 ("octeontx2-af: Exact match support")
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Signed-off-by: Sunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: Sai Krishna <saikrishnag@marvell.com>
---
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
index 006beb5cf98d..f15efd41972e 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
@@ -594,8 +594,7 @@ static int npc_scan_kex(struct rvu *rvu, int blkaddr, u8 intf)
 	 */
 	masked_cfg = cfg & NPC_EXACT_NIBBLE;
 	bitnr = NPC_EXACT_NIBBLE_START;
-	for_each_set_bit_from(bitnr, (unsigned long *)&masked_cfg,
-			      NPC_EXACT_NIBBLE_START) {
+	for_each_set_bit_from(bitnr, (unsigned long *)&masked_cfg, NPC_EXACT_NIBBLE_END + 1) {
 		npc_scan_exact_result(mcam, bitnr, key_nibble, intf);
 		key_nibble++;
 	}
-- 
2.25.1


  parent reply	other threads:[~2023-04-26  7:44 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-26  7:43 [net PATCH v4 00/10] octeontx2: Miscellaneous fixes Sai Krishna
2023-04-26  7:43 ` [net PATCH v4 01/10] octeontx2-af: Secure APR table update with the lock Sai Krishna
2023-04-26  7:43 ` Sai Krishna [this message]
2023-04-26  7:43 ` [net PATCH v4 03/10] octeontx2-af: Fix depth of cam and mem table Sai Krishna
2023-04-26  7:43 ` [net PATCH v4 04/10] octeontx2-pf: Increase the size of dmac filter flows Sai Krishna
2023-04-26  7:43 ` [net PATCH v4 05/10] octeontx2-af: Add validation for lmac type Sai Krishna
2023-04-26  7:43 ` [net PATCH v4 06/10] octeontx2-af: Update correct mask to filter IPv4 fragments Sai Krishna
2023-04-26  7:43 ` [net PATCH v4 07/10] octeontx2-af: Update/Fix NPC field hash extract feature Sai Krishna
2023-04-26  7:43 ` [net PATCH v4 08/10] octeontx2-af: Fix issues with NPC field hash extract Sai Krishna
2023-04-26  7:43 ` [net PATCH v4 09/10] octeontx2-af: Skip PFs if not enabled Sai Krishna
2023-04-26 10:00   ` Simon Horman
2023-05-02  3:10     ` [EXT] " Ratheesh Kannoth
2023-05-02 11:55       ` Simon Horman
2023-04-26  7:43 ` [net PATCH v4 10/10] octeontx2-pf: Disable packet I/O for graceful exit Sai Krishna
2023-04-26 10:06   ` Simon Horman
2023-04-27  7:14     ` Sai Krishna Gajula

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=20230426074345.750135-3-saikrishnag@marvell.com \
    --to=saikrishnag@marvell.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gakula@marvell.com \
    --cc=hkelam@marvell.com \
    --cc=jerinj@marvell.com \
    --cc=kuba@kernel.org \
    --cc=lcherian@marvell.com \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rkannoth@marvell.com \
    --cc=sbhatta@marvell.com \
    --cc=sgoutham@marvell.com \
    --cc=simon.horman@corigine.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®