From patchwork Fri Aug 25 10:36:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Dwivedi X-Patchwork-Id: 90 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1961A430FF; Fri, 25 Aug 2023 12:36:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9D01B40695; Fri, 25 Aug 2023 12:36:55 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id F2978400D5 for ; Fri, 25 Aug 2023 12:36:53 +0200 (CEST) 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 37P3ctLY001856 for ; Fri, 25 Aug 2023 03:36:53 -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=6RnERz7adbYvCPd80WDihbjXcnHU4X5Q192pR/8z7yY=; b=dyq0CsnRmU1fIdPleMRBOxP8D9+QN+OJmeiNiTIs3xrF3jrtTMQx35Y5JVPQdJIDbgmg +kYb7kZDVlCT6JQbCwleclcYiXUikwB5aqpBepf9c3tex9taDuOQmnoOLAcCAGFw2M+I FfHlj1m++vBGG124R5saMQh3IwkuLK2kpOCjYufgBxuoqgGr0iRjbvaR70taO+6JtVuf Oau4OyNjmpE6DnjmQSCFY1ntRrzbTe038sFzfDXh5a7Ssfe0lTm5FJvpOoYXAtGCA3we JXUThQ+BWyKoZI1hmvREeVxVqyOveiDMvIa+OouxutLhCt7wFvPvhV4aKlMf2H//OOEV Kw== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3spmk291mj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 25 Aug 2023 03:36:53 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 25 Aug 2023 03:36:51 -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; Fri, 25 Aug 2023 03:36:50 -0700 Received: from localhost.localdomain (unknown [10.28.36.185]) by maili.marvell.com (Postfix) with ESMTP id 07A6D3F7093; Fri, 25 Aug 2023 03:36:48 -0700 (PDT) From: Ankur Dwivedi To: CC: , , , "Ankur Dwivedi" Subject: [PATCH v2 0/1] support for MACsec PN threshold events on multiple ports Date: Fri, 25 Aug 2023 16:06:34 +0530 Message-ID: <20230825103635.3614778-1-adwivedi@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230823055000.2692083-1-adwivedi@marvell.com> References: <20230823055000.2692083-1-adwivedi@marvell.com> MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: lQrn2jW2aodDHRr-KhnWQNkCZjwNdqAD X-Proofpoint-GUID: lQrn2jW2aodDHRr-KhnWQNkCZjwNdqAD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-08-25_08,2023-08-25_01,2023-05-22_02 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch series adds support for packet number threshold events to be received on the respective ethernet port. For this a sa to port mapping is created during sa creation. When the pn threshold event is received then the check for port id is made to receive the event on the correct port. v2: - Squashed the v1 patches, to resolve compilation error. Ankur Dwivedi (1): net/cnxk: support MACsec PN threshold events on multiple ports drivers/common/cnxk/roc_mcs.c | 22 +++++++++++++++++++--- drivers/common/cnxk/roc_mcs.h | 8 ++++++-- drivers/common/cnxk/roc_mcs_sec_cfg.c | 6 ++++++ drivers/common/cnxk/version.map | 1 + drivers/net/cnxk/cnxk_ethdev_mcs.c | 14 +++++++++++++- 5 files changed, 45 insertions(+), 6 deletions(-)