From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 01EA242B83; Tue, 23 May 2023 21:49:55 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84D7240A80; Tue, 23 May 2023 21:49: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 A163340689 for ; Tue, 23 May 2023 21:49: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 34NEo5r9006798; Tue, 23 May 2023 12:49:50 -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=NzogL3DeMLO4UfKIo5GCSMGSYVLWmVORcHiolbx37ZQ=; b=QgxnZLE4WoZavRbisNFxSULiqRdh22WWw/UgL6socdMTrRjHZTRqe4OpkopD6kqHfNo8 wP1MPQ6yv3o81Nm67pjGU6yG3WpNBxz62j8wfZjAoYfgX2LkBp4lonfNYctq6sXdQCr3 hocE666D3GCtljBhjXGL1Ck5umN9RPZhTAKPynopPBJRFgK2R+ymfc776MGeHRB1VS+S fE3CwhARcWlK5IIM6BitPQoZ9XpHAkiazpHG4vOuwDP4IRZZWcKkKFJfspMrCm2KPcz0 8Xqa2vLhTNdou3HRm8dVJwr/0t7juvRHs12tnFbACgUPWcJOzI39sB1QPtCynNrymudm bQ== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3qpwqk30u5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 12:49:50 -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.48; Tue, 23 May 2023 12:49:48 -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; Tue, 23 May 2023 12:49:48 -0700 Received: from localhost.localdomain (unknown [10.28.36.102]) by maili.marvell.com (Postfix) with ESMTP id 55BCF3F70A9; Tue, 23 May 2023 12:49:45 -0700 (PDT) From: Akhil Goyal To: CC: , , , , , , , , , Akhil Goyal Subject: [PATCH 00/13] Add MACsec unit test cases Date: Wed, 24 May 2023 01:19:05 +0530 Message-ID: <20230523194918.1940212-1-gakhil@marvell.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220928124516.93050-5-gakhil@marvell.com> References: <20220928124516.93050-5-gakhil@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: -7RqUmHVqHGUv4T0w54HiV5yAfcdUnKk X-Proofpoint-GUID: -7RqUmHVqHGUv4T0w54HiV5yAfcdUnKk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-23_12,2023-05-23_02,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 Inline MACsec offload was supported in DPDK 22.11 using rte_security APIs. This patchset adds few minor changes in the rte_security APIs to specify the direction of SA/SC and update the SC configuration to set packet number threshold. The patchset also add functional test cases in dpdk-test app to verify MACsec functionality. This patchset is pending from last release [1] due to lack of hardware to test. Now the test cases are verified on Marvell cnxk PMD and the pmd support is added as a separate patchset. Akhil Goyal (10): security: add direction in SA/SC configuration security: add MACsec packet number threshold test/security: add inline MACsec cases test/security: add MACsec integrity cases test/security: verify multi flow MACsec test/security: add MACsec VLAN cases test/security: add MACsec negative cases test/security: verify MACsec stats test/security: verify MACsec Tx HW rekey test/security: remove no MACsec support case Ankur Dwivedi (3): test/security: verify MACsec interrupts test/security: verify MACsec Rx rekey test/security: verify MACsec anti replay app/test/meson.build | 1 + app/test/test_security.c | 37 - app/test/test_security_inline_macsec.c | 2332 ++++++++++ .../test_security_inline_macsec_vectors.h | 3895 +++++++++++++++++ lib/security/rte_security.c | 16 +- lib/security/rte_security.h | 24 +- lib/security/rte_security_driver.h | 12 +- 7 files changed, 6266 insertions(+), 51 deletions(-) create mode 100644 app/test/test_security_inline_macsec.c create mode 100644 app/test/test_security_inline_macsec_vectors.h -- 2.25.1