Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110161/?format=api
http://patches.dpdk.org/api/patches/110161/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220422104709.20722-18-ndabilpuram@marvell.com/", "project": { "id": 1, "url": "http://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20220422104709.20722-18-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220422104709.20722-18-ndabilpuram@marvell.com", "date": "2022-04-22T10:46:59", "name": "[v2,18/28] net/cnxk: support decrement TTL for inline IPsec", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "6513e4f6d550c81cb0fef7f0b4654e370d40c484", "submitter": { "id": 1202, "url": "http://patches.dpdk.org/api/people/1202/?format=api", "name": "Nithin Dabilpuram", "email": "ndabilpuram@marvell.com" }, "delegate": { "id": 310, "url": "http://patches.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220422104709.20722-18-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 22634, "url": "http://patches.dpdk.org/api/series/22634/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22634", "date": "2022-04-22T10:46:42", "name": "[v2,01/28] common/cnxk: add multi channel support for SDP send queues", "version": 2, "mbox": "http://patches.dpdk.org/series/22634/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/110161/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/110161/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "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])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 09346A0093;\n\tFri, 22 Apr 2022 12:49:01 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 42265427EF;\n\tFri, 22 Apr 2022 12:48:08 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 3DF07410F5\n for <dev@dpdk.org>; Fri, 22 Apr 2022 12:48:07 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 23M0PRV6003207\n for <dev@dpdk.org>; Fri, 22 Apr 2022 03:48:06 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fk7mk44ck-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 22 Apr 2022 03:48:06 -0700", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Fri, 22 Apr 2022 03:48:04 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Fri, 22 Apr 2022 03:48:04 -0700", "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 482723F7088;\n Fri, 22 Apr 2022 03:48:02 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-type; s=pfpt0220; bh=+dBpb0aZrEzUZr7LtcE+ejXQ9PIvmg935FZ+6B0R7BE=;\n b=SK0TeqzToGlZd/NkduU5EiQRH6dBB5JPHtZArbQtRQluGFnjBSLpTruD2knu95PPWWUq\n rMNgn7n58GW9kR4FbxvFkoy04Gr7dNpeNWw+vVy7trp9s8jM0AO/ExlOOu+ygQTrKIWD\n MB6gcgcq3YoXC7R9KLZjWdabVhbYtymS2gCwve4zwajxesBeEl7on98ECo02xV6Qx6ev\n zJuGrkMHDSFyCzn9fhWXhD73Y9FGVv4B3DgHftdFQHt0w/WbxRgkHnGnOX+4oIdMdguM\n YO76Xn7Lnkrrz7Joh2ZjnAYyafoIPSQ6r8nS26oa2+px494Ecg8vXzPJzN+eALAEc1kX 3w==", "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>", "To": "<jerinj@marvell.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, \"Kiran\n Kumar K\" <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>,\n Satha Rao <skoteshwar@marvell.com>", "CC": "<dev@dpdk.org>, Akhil Goyal <gakhil@marvell.com>", "Subject": "[PATCH v2 18/28] net/cnxk: support decrement TTL for inline IPsec", "Date": "Fri, 22 Apr 2022 16:16:59 +0530", "Message-ID": "<20220422104709.20722-18-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.8.4", "In-Reply-To": "<20220422104709.20722-1-ndabilpuram@marvell.com>", "References": "<20220422104709.20722-1-ndabilpuram@marvell.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "h82BnuWel4US2IBdxuSxiNruSq3EdX_u", "X-Proofpoint-GUID": "h82BnuWel4US2IBdxuSxiNruSq3EdX_u", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514\n definitions=2022-04-22_02,2022-04-22_01,2022-02-23_01", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "From: Akhil Goyal <gakhil@marvell.com>\n\nAdded support for decrementing TTL(IPv4)/hoplimit(IPv6)\nwhile doing inline IPsec processing if the security session\nsa options is enabled with dec_ttl.\n\nSigned-off-by: Akhil Goyal <gakhil@marvell.com>\n---\n drivers/net/cnxk/cn10k_ethdev.h | 3 ++-\n drivers/net/cnxk/cn10k_ethdev_sec.c | 1 +\n drivers/net/cnxk/cn10k_tx.h | 6 ++++--\n 3 files changed, 7 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/cnxk/cn10k_ethdev.h b/drivers/net/cnxk/cn10k_ethdev.h\nindex 9642d6a..c8666ce 100644\n--- a/drivers/net/cnxk/cn10k_ethdev.h\n+++ b/drivers/net/cnxk/cn10k_ethdev.h\n@@ -73,7 +73,8 @@ struct cn10k_sec_sess_priv {\n \t\t\tuint8_t roundup_len;\n \t\t\tuint16_t partial_len : 10;\n \t\t\tuint16_t chksum : 2;\n-\t\t\tuint16_t rsvd : 4;\n+\t\t\tuint16_t dec_ttl : 1;\n+\t\t\tuint16_t rsvd : 3;\n \t\t};\n \n \t\tuint64_t u64;\ndiff --git a/drivers/net/cnxk/cn10k_ethdev_sec.c b/drivers/net/cnxk/cn10k_ethdev_sec.c\nindex 60b7093..f32e169 100644\n--- a/drivers/net/cnxk/cn10k_ethdev_sec.c\n+++ b/drivers/net/cnxk/cn10k_ethdev_sec.c\n@@ -556,6 +556,7 @@ cn10k_eth_sec_session_create(void *device,\n \t\t/* Propagate inner checksum enable from SA to fast path */\n \t\tsess_priv.chksum = (!ipsec->options.ip_csum_enable << 1 |\n \t\t\t\t !ipsec->options.l4_csum_enable);\n+\t\tsess_priv.dec_ttl = ipsec->options.dec_ttl;\n \n \t\t/* Pointer from eth_sec -> outb_sa */\n \t\teth_sec->sa = outb_sa;\ndiff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h\nindex c25825c..c482352 100644\n--- a/drivers/net/cnxk/cn10k_tx.h\n+++ b/drivers/net/cnxk/cn10k_tx.h\n@@ -315,7 +315,8 @@ cn10k_nix_prep_sec_vec(struct rte_mbuf *m, uint64x2_t *cmd0, uint64x2_t *cmd1,\n \tsa = (uintptr_t)roc_nix_inl_ot_ipsec_outb_sa(sa_base, sess_priv.sa_idx);\n \tucode_cmd[3] = (ROC_CPT_DFLT_ENG_GRP_SE_IE << 61 | 1UL << 60 | sa);\n \tucode_cmd[0] = (ROC_IE_OT_MAJOR_OP_PROCESS_OUTBOUND_IPSEC << 48 |\n-\t\t\t((uint64_t)sess_priv.chksum) << 32 | pkt_len);\n+\t\t\t((uint64_t)sess_priv.chksum) << 32 |\n+\t\t\t((uint64_t)sess_priv.dec_ttl) << 34 | pkt_len);\n \n \t/* CPT Word 0 and Word 1 */\n \tcmd01 = vdupq_n_u64((nixtx + 16) | (cn10k_nix_tx_ext_subs(flags) + 1));\n@@ -442,7 +443,8 @@ cn10k_nix_prep_sec(struct rte_mbuf *m, uint64_t *cmd, uintptr_t *nixtx_addr,\n \tsa = (uintptr_t)roc_nix_inl_ot_ipsec_outb_sa(sa_base, sess_priv.sa_idx);\n \tucode_cmd[3] = (ROC_CPT_DFLT_ENG_GRP_SE_IE << 61 | 1UL << 60 | sa);\n \tucode_cmd[0] = (ROC_IE_OT_MAJOR_OP_PROCESS_OUTBOUND_IPSEC << 48 |\n-\t\t\t((uint64_t)sess_priv.chksum) << 32 | pkt_len);\n+\t\t\t((uint64_t)sess_priv.chksum) << 32 |\n+\t\t\t((uint64_t)sess_priv.dec_ttl) << 34 | pkt_len);\n \n \t/* CPT Word 0 and Word 1. Assume no multi-seg support */\n \tcmd01 = vdupq_n_u64((nixtx + 16) | (cn10k_nix_tx_ext_subs(flags) + 1));\n", "prefixes": [ "v2", "18/28" ] }{ "id": 110161, "url": "