Message ID | 20230426062528.20575-1-gakula@marvell.com |
---|---|
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 b10csp42423vqo; Tue, 25 Apr 2023 23:37:49 -0700 (PDT) X-Google-Smtp-Source: AKy350a9Ob1GQn7KMP0BPD0J92DOVOvPCxzt2skNsd2omquFJD3YKn8rR6eR8xK7IsWTKVYPRsxM X-Received: by 2002:a05:6a00:148e:b0:63b:6911:8928 with SMTP id v14-20020a056a00148e00b0063b69118928mr27153736pfu.3.1682491069295; Tue, 25 Apr 2023 23:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682491069; cv=none; d=google.com; s=arc-20160816; b=TMTXOENJyVOvVALfPwADGjLSVnCgjDGhB1LQtGfU0m6p/BuzUfIncojAXL89W2kdgd ffadjYvITVPxBHeNEizf0oE01V5Da8Mo+LUCZtarDBSVFkdUcQWgzZDnWYi57xcSi81l ulKB3WZ7mrBAemOnYVNVkOpXk8TWLtFFj9m+3bxFMTSy1/7GRUq1uaebRWqbkCn8HcJu Wg0RHAzxzOqbLjUtmbs7TEkqFGp26p90fjqcli0NKpuZ4XGt1nk20Xx4IxzGrry7ubHh 19/iLVCbOJAeqWc4jppyBV0LZx1eSdesc4Z4vVRWZsiXBTOGH0NDijpU/Ck80ngAxD9P aY2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=sTSuZ7sUzdC+Zxyb8IFNPQ7YZ/BApBN++Ta63Z3LULg=; b=WVwB5Mwpjt+iKJ1yTP2nTlwDKSA/vL+7W3csDJH5FeawZw+hb/1gO6tqrCHfFf3xa2 tGWHzzjYmIRu32UkAG1or0aiel9XoYI36OLeFCzVpMvJIKMKWC3kJlXveonR3JV9vzIk Rsdkr8YJQa/xiM3bACSg1s3S+DgccbrUo/XjwchyV5tn5WyjLPZOZAR/M3oORSbHBGQI sM/0F1UH+nzeTjE66WHNrhDNSCHzLeBvjKSjg++B2G+eOWi244Lo89tiMlEj65XWNZ3K AFwk+X2XiPQ+qUXP/pqm4lEiUoyjLolm3LRoHqAGqeFE1tYHmgKq1QfcQBINbE16tfYD 56Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=jsd9yEKV; 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 i12-20020a6551cc000000b0051b6edd4ec4si15652041pgq.99.2023.04.25.23.37.35; Tue, 25 Apr 2023 23:37:49 -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=jsd9yEKV; 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 S239499AbjDZGZp (ORCPT <rfc822;zxc52fgh@gmail.com> + 99 others); Wed, 26 Apr 2023 02:25:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239384AbjDZGZo (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Apr 2023 02:25:44 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA7B32134; Tue, 25 Apr 2023 23:25:43 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33Q64Kfk001000; Tue, 25 Apr 2023 23:25:34 -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=sTSuZ7sUzdC+Zxyb8IFNPQ7YZ/BApBN++Ta63Z3LULg=; b=jsd9yEKViDKd7MGha9VyED1flfFTKOXt8pH1Hco8w2/cBnURsaC7uB7+1PtncaLwxXwm sw4GdFf5aiDzjiGzRT79ur/YaNOj4L9XeX6KmDZ72WjXIuf1XBClSKcytl+AnPvhHktj O/iR2nJeRPBNWO8r89Euhw9dv+0GJLYvmU/T+J4Zgi+ZErlxVGDkfrULC6AWijvy/xve 1Aw3cY5iZuLQ+r6WYdoawrl3TVHbFqQoRX+5Nb5/g5bcSZpJ/LWkoQ7mWVI3rQ70TJQj wbAWRBXdYHnt4GMsX3TrZzmoHt4n6XcS3ia9E6486lUxRRqiwdUDQ475DyWjKk0ESs+v AA== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3q4f3pdcvu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 25 Apr 2023 23:25:34 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Tue, 25 Apr 2023 23:25:32 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.48 via Frontend Transport; Tue, 25 Apr 2023 23:25:32 -0700 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 3C0AE3F703F; Tue, 25 Apr 2023 23:25:29 -0700 (PDT) From: Geetha sowjanya <gakula@marvell.com> To: <netdev@vger.kernel.org>, <linux-kernel@vger.kernel.org> CC: <kuba@kernel.org>, <davem@davemloft.net>, <edumazet@google.com>, <pabeni@redhat.com>, <richardcochran@gmail.com>, <sgoutham@marvell.com>, <gakula@marvell.com>, <sbhatta@marvell.com>, <hkelam@marvell.com> Subject: [net PATCH v2 0/9] Macsec fixes for CN10KB Date: Wed, 26 Apr 2023 11:55:19 +0530 Message-ID: <20230426062528.20575-1-gakula@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: r5hee5INQSL5FeYQidzWHU_llSPj1xRm X-Proofpoint-GUID: r5hee5INQSL5FeYQidzWHU_llSPj1xRm 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-25_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?1764219755290934810?= X-GMAIL-MSGID: =?utf-8?q?1764219755290934810?= |
Series |
Macsec fixes for CN10KB
|
|
Message
Geetha sowjanya
April 26, 2023, 6:25 a.m. UTC
This patch set has fixes for the issues encountered while testing macsec on CN10KB silicon. Below is the description of patches: Patch 1: For each LMAC two MCSX_MCS_TOP_SLAVE_CHANNEL_CFG registers exist in CN10KB. Bypass has to be disabled in two registers. Patch 2: Add workaround for errata w.r.t accessing TCAM DATA and MASK registers. Patch 3: Fixes the parser configuration to allow PTP traffic. Patch 4: Addresses the IP vector and block level interrupt mask changes. Patch 5: Fix NULL pointer crashes when rebooting Patch 6: Since MCS is global block shared by all LMACS the TCAM match must include macsec DMAC also to distinguish each macsec interface Patch 7: Before freeing MCS hardware resource to AF clear the stats also. Patch 8: Stats which share single counter in hardware are tracked in software. This tracking was based on wrong secy mode params. Use correct secy mode params Patch 9: When updating secy mode params, PN number was also reset to initial values. Hence do not write to PN value register when updating secy. Geetha sowjanya (3): octeonxt2-af: mcs: Fix per port bypass config octeontx2-af: mcs: Config parser to skip 8B header octeontx2-af: mcs: Fix MCS block interrupt Subbaraya Sundeep (6): octeontx2-af: mcs: Write TCAM_DATA and TCAM_MASK registers at once octeontx2-pf: mcs: Fix NULL pointer dereferences octeontx2-pf: mcs: Match macsec ethertype along with DMAC octeontx2-pf: mcs: Clear stats before freeing resource octeontx2-pf: mcs: Fix shared counters logic octeontx2-pf: mcs: Do not reset PN when updating secy --- v1-v2: -Added Reviewed-by: Leon Romanovsky <leonro@nvidia.com> -Corrected the sequence of tear down to fix null pointer dereferences. .../net/ethernet/marvell/octeontx2/af/mcs.c | 106 +++++++++--------- .../net/ethernet/marvell/octeontx2/af/mcs.h | 26 ++--- .../marvell/octeontx2/af/mcs_cnf10kb.c | 63 +++++++++++ .../ethernet/marvell/octeontx2/af/mcs_reg.h | 6 +- .../marvell/octeontx2/af/mcs_rvu_if.c | 37 ++++++ .../net/ethernet/marvell/octeontx2/af/rvu.h | 1 + .../ethernet/marvell/octeontx2/af/rvu_cgx.c | 2 + .../marvell/octeontx2/af/rvu_debugfs.c | 4 +- .../marvell/octeontx2/nic/cn10k_macsec.c | 54 ++++++--- .../marvell/octeontx2/nic/otx2_common.h | 2 +- 10 files changed, 217 insertions(+), 84 deletions(-)
Comments
Hello: This series was applied to netdev/net.git (main) by Paolo Abeni <pabeni@redhat.com>: On Wed, 26 Apr 2023 11:55:19 +0530 you wrote: > This patch set has fixes for the issues encountered while > testing macsec on CN10KB silicon. Below is the description > of patches: > > Patch 1: For each LMAC two MCSX_MCS_TOP_SLAVE_CHANNEL_CFG registers exist > in CN10KB. Bypass has to be disabled in two registers. > > [...] Here is the summary with links: - [net,v2,1/9] octeonxt2-af: mcs: Fix per port bypass config https://git.kernel.org/netdev/net/c/c222b292a356 - [net,v2,2/9] octeontx2-af: mcs: Write TCAM_DATA and TCAM_MASK registers at once https://git.kernel.org/netdev/net/c/b51612198603 - [net,v2,3/9] octeontx2-af: mcs: Config parser to skip 8B header https://git.kernel.org/netdev/net/c/65cdc2b637a5 - [net,v2,4/9] octeontx2-af: mcs: Fix MCS block interrupt https://git.kernel.org/netdev/net/c/b8aebeaaf9ff - [net,v2,5/9] octeontx2-pf: mcs: Fix NULL pointer dereferences https://git.kernel.org/netdev/net/c/699af748c615 - [net,v2,6/9] octeontx2-pf: mcs: Match macsec ethertype along with DMAC https://git.kernel.org/netdev/net/c/57d00d4364f3 - [net,v2,7/9] octeontx2-pf: mcs: Clear stats before freeing resource https://git.kernel.org/netdev/net/c/815debbbf7b5 - [net,v2,8/9] octeontx2-pf: mcs: Fix shared counters logic https://git.kernel.org/netdev/net/c/9bdfe61054fb - [net,v2,9/9] octeontx2-pf: mcs: Do not reset PN while updating secy https://git.kernel.org/netdev/net/c/3c99bace4ad0 You are awesome, thank you!