From patchwork Thu Sep 3 11:18:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Dwivedi X-Patchwork-Id: 76402 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8FBECA04C5; Thu, 3 Sep 2020 13:20:00 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EEAD31C0AE; Thu, 3 Sep 2020 13:19:59 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 14FD71BEAF for ; Thu, 3 Sep 2020 13:19:57 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 083BFmSr006697; Thu, 3 Sep 2020 04:19:57 -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-transfer-encoding : content-type; s=pfpt0220; bh=B5s/ZPYxChvDiYa90WAEXf73qoU0wc8A6bG4AR3M17I=; b=WdOKMNIUv915uut6ejrqAoxnoFqS61WVslC+ci0bNky/2x2/YF7mkTGqLD4JqunOCkQp EJv9cE5XiytMQqtoNX1e1ZwCxwIuHIulKb/6L9sEKXLLACjNb2iw1hacwINRaJ47P6CS 973Kj76MDOauLJlhDJ1lM4ikLIXE13T/lLc/mAoFpyE51yOW9rlscGMxYoMKj4+2NxSR 4d8vRWK0V8Lr7G5ERYWOjE0Rdont0hLl3ClC4avHhPH0DtU8ih/9DS4wBw84wlpZoaff Pg1+t9VUD+gRBi9o8qYDFQn0xAuW7UMOVTonm7VsdFHxQ8wsJ/372hpfVYLaETg5M4F+ ig== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 337phqb5f6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 03 Sep 2020 04:19:57 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 3 Sep 2020 04:19:55 -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.2; Thu, 3 Sep 2020 04:19:54 -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.2 via Frontend Transport; Thu, 3 Sep 2020 04:19:54 -0700 Received: from hyd1349.t110.caveonetworks.com (unknown [10.29.45.13]) by maili.marvell.com (Postfix) with ESMTP id E0F543F7043; Thu, 3 Sep 2020 04:19:52 -0700 (PDT) From: Ankur Dwivedi To: CC: , , , Ankur Dwivedi Date: Thu, 3 Sep 2020 16:48:34 +0530 Message-ID: <20200903111836.6864-1-adwivedi@marvell.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-03_05:2020-09-03, 2020-09-03 signatures=0 Subject: [dpdk-dev] [PATCH 0/2] add anti replay support in OCTEON TX2 security X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Support for anti replay is added in OCTEON TX2 security PMD. The functionality has been tested with ipsec-secgw application running in inline protocol offload mode. Ankur Dwivedi (2): net/octeontx2: add anti replay support in security session net/octeontx2: add replay check for inline inbound packets .../crypto/octeontx2/otx2_ipsec_anti_replay.h | 208 ++++++++++++++++++ drivers/crypto/octeontx2/otx2_ipsec_fp.h | 29 ++- drivers/crypto/octeontx2/otx2_security.h | 3 + drivers/net/octeontx2/otx2_ethdev_sec.c | 42 ++++ drivers/net/octeontx2/otx2_rx.h | 7 + 5 files changed, 286 insertions(+), 3 deletions(-) create mode 100644 drivers/crypto/octeontx2/otx2_ipsec_anti_replay.h Reviewed-by: Jerin Jacob