From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 422E9A00C3; Sat, 16 May 2020 11:27:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2C1401D999; Sat, 16 May 2020 11:27:28 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id C49571D717 for ; Sat, 16 May 2020 11:27:26 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04G9QZw3006275; Sat, 16 May 2020 02:27:26 -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=pfpt0818; bh=p46HgMGWL+6vWnAOnb2Ac7yqiFtaD4ZPebfSTGO/4Kg=; b=NxGkCM2Rg38AdUrj5CT7mPlLoMN07m5C/9a8YadoV8UXfwR8OGs1bdWLu3v4fHSM2jfm MuJYbl0dUcjzKQC0kw7zcQnfxTOTJtouiAtnjKeRqfwdJ4CvNlaYqTN8z/VQumph50U0 iLqLpWk9TgwV31GB/NF2Z/rJOKr2VR1F21PrzI9yZep8BQKaj/rjhSA++G2Jb+5Mhbid Roq8FpurCYdMI1crElEk3BMSpr1jcMaSzmE2xhPjWKnlzvCxRNv7NM2sdSnOKSbqMGSi IfpmhAmdL0RkW0A6hyXKc19hbwmg/Xp3Q+Wge1rlyidzOHsc4dxECxTGfk8x+GKx/WWy hA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 312dhq8050-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sat, 16 May 2020 02:27:25 -0700 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 16 May 2020 02:27:24 -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; Sat, 16 May 2020 02:27:24 -0700 Received: from ajoseph83.caveonetworks.com (ajoseph83.caveonetworks.com [10.29.45.60]) by maili.marvell.com (Postfix) with ESMTP id D6ABD3F7040; Sat, 16 May 2020 02:27:21 -0700 (PDT) From: Anoob Joseph To: Akhil Goyal CC: Tejasree Kondoj , Thomas Monjalon , Jerin Jacob , Narayana Prasad , Ankur Dwivedi , , Anoob Joseph Date: Sat, 16 May 2020 14:56:54 +0530 Message-ID: <1589621218-25339-3-git-send-email-anoobj@marvell.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589621218-25339-1-git-send-email-anoobj@marvell.com> References: <1589621218-25339-1-git-send-email-anoobj@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-16_05:2020-05-15, 2020-05-16 signatures=0 Subject: [dpdk-dev] [PATCH 2/6] net/octeontx2: increase max packet length for Inline IPsec Rx 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" From: Tejasree Kondoj Update max packet length supported by Inline IPsec Rx to NIX_MAX_FRS Signed-off-by: Anoob Joseph Signed-off-by: Tejasree Kondoj --- drivers/net/octeontx2/otx2_ethdev_sec.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/octeontx2/otx2_ethdev_sec.c b/drivers/net/octeontx2/otx2_ethdev_sec.c index 3858218..5f6140f 100644 --- a/drivers/net/octeontx2/otx2_ethdev_sec.c +++ b/drivers/net/octeontx2/otx2_ethdev_sec.c @@ -20,8 +20,6 @@ #include "otx2_ipsec_fp.h" #include "otx2_sec_idev.h" -#define ETH_SEC_MAX_PKT_LEN 1450 - #define AH_HDR_LEN 12 #define AES_GCM_IV_LEN 8 #define AES_GCM_MAC_LEN 16 @@ -745,7 +743,7 @@ eth_sec_ipsec_cfg(struct rte_eth_dev *eth_dev, uint8_t tt) req->ipsec_cfg0.sa_pow2_size = rte_log2_u32(sizeof(struct otx2_ipsec_fp_in_sa)); - req->ipsec_cfg0.lenm1_max = ETH_SEC_MAX_PKT_LEN - 1; + req->ipsec_cfg0.lenm1_max = NIX_MAX_FRS - 1; req->ipsec_cfg1.sa_idx_w = rte_log2_u32(dev->ipsec_in_max_spi); req->ipsec_cfg1.sa_idx_max = dev->ipsec_in_max_spi - 1; -- 2.7.4