Message ID | 20230426074345.750135-3-saikrishnag@marvell.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp73648vqo; Wed, 26 Apr 2023 00:57:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4wqeoSLmj4VkkXZ9Jn3XO/XECP4x8+skozcag+M32qZA6gIvB9aR/bBZadfspLpSwRRwPf X-Received: by 2002:a17:902:fb8d:b0:1a9:7cb3:70cb with SMTP id lg13-20020a170902fb8d00b001a97cb370cbmr7730142plb.67.1682495862034; Wed, 26 Apr 2023 00:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682495862; cv=none; d=google.com; s=arc-20160816; b=KUp9ylIk6bxrE+SeVZ8wD2LGtyerlCwg1h9OVwqRaH3FdLRHszez/qP7TF7lU1/0Gk X5+INyRj9edQgLU2jnLvYhsx3fZe6vzDwoguDh0gCqaERfuJteb60maYkZa+i23+z1xp k8DFWmIWmAfIPAZnCweBVivPEwfcEAvKERStJqzDzzTQbg/WhaVECkX+RvkxoR+PxXdQ xXnQ/GFrqFftHPmLyih6QjW/3Ll4WqON/4vLnsldhBFCRfsw6trmoN2QQea3AfgT5SIu n/8jcokdQMUNULgr6/qpWrSZcNyF/Ud0IiZ61ATmCQHabQoyDF4xf69LAx5kJ7K4D43A xZ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=z6k/sUirye6gC9Hi9CvYYgb4LzEDa09KdOIf49LemB4=; b=wkKfxEbENhwpmhVEb6N7xvJfc5XvIVsOUBsGmMRQx2ONDenLWZk/obeYoA6MVDTLMh CuDPYA2RniHkCINSOKNtGkCN9RjXDEmbWRuZo+O/qLyd8kowuurF8SG/IoZBZqBYG0rx LJRDFJuOBLUwUR3lF2i6xES07D4nLcsgqLdYi5Rh4FUcbzlVq2ruwPjV6MmlDUX+Ople bxnEhD9N6wPj88U+Vp0b6Cmpk2RPHh/qxYGSm7vlQ09+4z6R5xI4o0tjxCK/ro8N/S8r a9kjT6d7uYnVlR2C3+mWi3ITjtfOe7l6sjq7+vjluJut2KcYjMPPpqTnhUHYJY8Zx2St GK1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=FA0gSQ9L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c4-20020a170902d48400b001a51bb4ad79si14076023plg.42.2023.04.26.00.57.27; Wed, 26 Apr 2023 00:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=FA0gSQ9L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239980AbjDZHod (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Wed, 26 Apr 2023 03:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240002AbjDZHo1 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Apr 2023 03:44:27 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9020540E7; Wed, 26 Apr 2023 00:44:10 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33Q75YDm012965; Wed, 26 Apr 2023 00:44:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=z6k/sUirye6gC9Hi9CvYYgb4LzEDa09KdOIf49LemB4=; b=FA0gSQ9L30scXvPzm4sxw6Uh0gE1WA373de2AFkRYZs8oJB/bPCGpwa5Kmdu31mRGvMF X5L4BGQ+4ZbPyqXXoN0omp3Bd+hgdvwWvsyQliFI3Zw3esWMbYrfennY/+lL6do1P7G9 h9TNfkx9VPSEiA3+iP5RuLUALJgvmbvDy8OCl+Ju8fr3kUe2L8Nob9AjozqLQJ2KAppj DXawQgl88whDKX1mC/P9VDQxF7eBfXb0sQLZoZ2tfgCiLrZEefB8Vk44rgvWJ2ad3JQw EY4SJljaUnEGUvlilitAyI5aTs01tv2XLIkq9RZhrfJgF6v4MXUW8F8bcUHrmT38aM4R 6w== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3q6c2fdd3b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Wed, 26 Apr 2023 00:44:03 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 26 Apr 2023 00:44:02 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Wed, 26 Apr 2023 00:44:02 -0700 Received: from hyd1425.marvell.com (unknown [10.29.37.83]) by maili.marvell.com (Postfix) with ESMTP id 987513F7083; Wed, 26 Apr 2023 00:43:57 -0700 (PDT) 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 Message-ID: <20230426074345.750135-3-saikrishnag@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230426074345.750135-1-saikrishnag@marvell.com> References: <20230426074345.750135-1-saikrishnag@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: 7n2mrKzNTQGhf3NQRlcJ53INW1fAYT9n X-Proofpoint-ORIG-GUID: 7n2mrKzNTQGhf3NQRlcJ53INW1fAYT9n X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-26_02,2023-04-26_01,2023-02-09_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1764224781192836223?= X-GMAIL-MSGID: =?utf-8?q?1764224781192836223?= |
Series |
octeontx2: Miscellaneous fixes
|
|
Commit Message
Sai Krishna Gajula
April 26, 2023, 7:43 a.m. UTC
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++; }