From patchwork Sun Jul 24 14:16:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Subbaraya Sundeep X-Patchwork-Id: 12927547 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F4CBC43334 for ; Sun, 24 Jul 2022 14:17:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231491AbiGXORG (ORCPT ); Sun, 24 Jul 2022 10:17:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiGXORE (ORCPT ); Sun, 24 Jul 2022 10:17:04 -0400 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B736012D29 for ; Sun, 24 Jul 2022 07:17:03 -0700 (PDT) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 26OD0KS3025155; Sun, 24 Jul 2022 07:17:01 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=4PnfVbEDiI30kLA+xOaOPp1dyxqm93y1T7Zg6Wg0txI=; b=WHS7BaPkwmQNUBLAtx/edknF2s6dMwpr8p5cVk5yCVSZLmj5FR63jRYRIZ/rJw+NmiwD H1UfebU0T8ocNRwpoGJVix/E+NIv0vOh7lFvBit/dlryIV8HH1hh0m4IXihv3hhYUH97 rLyrTNyFL06xHwWnpXfgCNTr+6gxVqlexoO6I4Oe/va9DxrEmcm9xdFFbZQHYvT32Ges TzyLjlzF1HviouF4u1FktkmxTbHT73t7xJlKUWSdsl+8DWBiSOp7Ys8xBrHDEo3WCKVW vv9VHnb88KHZyDlBn8nn2vduaAfEKn3rUuQLEH9aSiORRRfvWRyprvGzdYno3UR2gx0k Cg== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3hgebq32pk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 24 Jul 2022 07:17:01 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Sun, 24 Jul 2022 07:16:59 -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.18 via Frontend Transport; Sun, 24 Jul 2022 07:16:59 -0700 Received: from hyd1358.marvell.com (unknown [10.29.37.11]) by maili.marvell.com (Postfix) with ESMTP id F14CB5E68AD; Sun, 24 Jul 2022 07:16:51 -0700 (PDT) From: Subbaraya Sundeep To: , , , CC: Subbaraya Sundeep Subject: [net PATCH 0/5] Octeontx2 AF driver fixes for NPC Date: Sun, 24 Jul 2022 19:46:44 +0530 Message-ID: <1658672209-8837-1-git-send-email-sbhatta@marvell.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Proofpoint-GUID: YEHLHGUTffZco7hZSN2Omc2URJqPEDI5 X-Proofpoint-ORIG-GUID: YEHLHGUTffZco7hZSN2Omc2URJqPEDI5 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-07-23_02,2022-07-21_02,2022-06-22_01 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org This patchset includes AF driver fixes wrt packet parser NPC. Following are the changes: Patch 1: The parser nibble configuration must be same for TX and RX interfaces and if not fix up is applied. This fixup was applied only for default profile currently and it has been fixed to apply for all profiles. Patch 2: Firmware image may not be present all times in the kernel image and default profile is used mostly hence suppress the warning. Patch 3: Custom profiles may not extract DMAC into the match key always. Hence fix the driver to allow profiles without DMAC extraction. Patch 4: This patch fixes a corner case where NIXLF is detached but without freeing its mcam entries which results in resource leak. Patch 5: SMAC is overlapped with DMAC mistakenly while installing rules based on SMAC. This patch fixes that. Thanks, Sundeep Harman Kalra (1): octeontx2-af: suppress external profile loading warning Stanislaw Kardach (1): octeontx2-af: Apply tx nibble fixup always Subbaraya Sundeep (2): octeontx2-af: Fix mcam entry resource leak octeontx2-af: Fix key checking for source mac Suman Ghosh (1): octeontx2-af: Allow mkex profiles without dmac. drivers/net/ethernet/marvell/octeontx2/af/npc.h | 1 + drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 6 ++ .../ethernet/marvell/octeontx2/af/rvu_debugfs.c | 6 ++ .../net/ethernet/marvell/octeontx2/af/rvu_npc.c | 15 +++- .../net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 85 +++++++++++++++++----- 5 files changed, 90 insertions(+), 23 deletions(-)