Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/127567/?format=api
http://patchwork.dpdk.org/api/patches/127567/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230526210214.617-2-anoobj@marvell.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20230526210214.617-2-anoobj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230526210214.617-2-anoobj@marvell.com", "date": "2023-05-26T21:01:53", "name": "[v4,01/22] net: add PDCP header", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "56f032bd2dc592274506353dcf19953a8ae93535", "submitter": { "id": 1205, "url": "http://patchwork.dpdk.org/api/people/1205/?format=api", "name": "Anoob Joseph", "email": "anoobj@marvell.com" }, "delegate": { "id": 6690, "url": "http://patchwork.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230526210214.617-2-anoobj@marvell.com/mbox/", "series": [ { "id": 28214, "url": "http://patchwork.dpdk.org/api/series/28214/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=28214", "date": "2023-05-26T21:01:52", "name": "lib: add pdcp protocol", "version": 4, "mbox": "http://patchwork.dpdk.org/series/28214/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/127567/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/127567/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 0C3C042BAD;\n\tFri, 26 May 2023 23:02:37 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EF7484282D;\n\tFri, 26 May 2023 23:02:36 +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 5BDCF427F2\n for <dev@dpdk.org>; Fri, 26 May 2023 23:02:35 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 34QHe8PA018900; Fri, 26 May 2023 14:02:33 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3qu1c78nag-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Fri, 26 May 2023 14:02:33 -0700", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Fri, 26 May 2023 14:02:31 -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.48 via Frontend\n Transport; Fri, 26 May 2023 14:02:31 -0700", "from BG-LT92004.corp.innovium.com (unknown [10.193.32.169])\n by maili.marvell.com (Postfix) with ESMTP id 99F513F706D;\n Fri, 26 May 2023 14:02:26 -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-transfer-encoding : content-type; s=pfpt0220;\n bh=bS9Asp1DjGr5Dm7D6LPLNyWdMwXO2OLPZlW/LdIhnyI=;\n b=J6tFWB/NM8ElZRNnimBy0Ff3XZeOLa5q24H+5SEjFVnhXj7hsYrorpVLVlpTq0jNLtQS\n t14ytcimjODc/ukp8H9bmUTy6fpQEwwK3jvUE8/AeKKL0y/atwyC7qN/zfff2SWetLd4\n xDc4X4NX3Y/I0e/6aY77K46DDWMW1XzMIj3R5tWATiIB5mZXQYiXdmdqedw6cFVKB2FH\n NeLAZZFuksD2QVPWqKU3ivtPj8qUrNhLx+L0BT2XDkS3mHOio3/wBM+YddzZnjVAQdtc\n AeyIzDOx+hBI68uUaLP1oZMdz9qQUWn+cJzdjjX61wTsvk8GDCMCDKCzaWSvmCyLRRMl bA==", "From": "Anoob Joseph <anoobj@marvell.com>", "To": "Thomas Monjalon <thomas@monjalon.net>, Akhil Goyal <gakhil@marvell.com>,\n Jerin Jacob <jerinj@marvell.com>, Konstantin Ananyev\n <konstantin.v.ananyev@yandex.ru>", "CC": "Volodymyr Fialko <vfialko@marvell.com>,\n Hemant Agrawal <hemant.agrawal@nxp.com>,\n =?utf-8?q?Mattias_R=C3=B6nnblom?= <mattias.ronnblom@ericsson.com>,\n Kiran Kumar K <kirankumark@marvell.com>, <dev@dpdk.org>,\n Olivier Matz <olivier.matz@6wind.com>,\n Stephen Hemminger <stephen@networkplumber.org>", "Subject": "[PATCH v4 01/22] net: add PDCP header", "Date": "Sat, 27 May 2023 02:31:53 +0530", "Message-ID": "<20230526210214.617-2-anoobj@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230526210214.617-1-anoobj@marvell.com>", "References": "<20230524160116.304-1-anoobj@marvell.com>\n <20230526210214.617-1-anoobj@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "aJIFA0n6yLqugCNiR349MY22TbyOsThu", "X-Proofpoint-ORIG-GUID": "aJIFA0n6yLqugCNiR349MY22TbyOsThu", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26\n definitions=2023-05-26_10,2023-05-25_03,2023-05-22_02", "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: Volodymyr Fialko <vfialko@marvell.com>\n\nAdd PDCP protocol header to be used for supporting PDCP protocol\nprocessing.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Kiran Kumar K <kirankumark@marvell.com>\nSigned-off-by: Volodymyr Fialko <vfialko@marvell.com>\nAcked-by: Akhil Goyal <gakhil@marvell.com>\n---\n doc/api/doxy-api-index.md | 3 +-\n lib/net/meson.build | 1 +\n lib/net/rte_pdcp_hdr.h | 147 ++++++++++++++++++++++++++++++++++++++\n 3 files changed, 150 insertions(+), 1 deletion(-)\n create mode 100644 lib/net/rte_pdcp_hdr.h", "diff": "diff --git a/doc/api/doxy-api-index.md b/doc/api/doxy-api-index.md\nindex c709fd48ad..debbe4134f 100644\n--- a/doc/api/doxy-api-index.md\n+++ b/doc/api/doxy-api-index.md\n@@ -127,7 +127,8 @@ The public API headers are grouped by topics:\n [Geneve](@ref rte_geneve.h),\n [eCPRI](@ref rte_ecpri.h),\n [L2TPv2](@ref rte_l2tpv2.h),\n- [PPP](@ref rte_ppp.h)\n+ [PPP](@ref rte_ppp.h),\n+ [PDCP hdr](@ref rte_pdcp_hdr.h)\n \n - **QoS**:\n [metering](@ref rte_meter.h),\ndiff --git a/lib/net/meson.build b/lib/net/meson.build\nindex 379d161ee0..bd56f91c22 100644\n--- a/lib/net/meson.build\n+++ b/lib/net/meson.build\n@@ -22,6 +22,7 @@ headers = files(\n 'rte_geneve.h',\n 'rte_l2tpv2.h',\n 'rte_ppp.h',\n+ 'rte_pdcp_hdr.h',\n )\n \n sources = files(\ndiff --git a/lib/net/rte_pdcp_hdr.h b/lib/net/rte_pdcp_hdr.h\nnew file mode 100644\nindex 0000000000..72ae9a66cb\n--- /dev/null\n+++ b/lib/net/rte_pdcp_hdr.h\n@@ -0,0 +1,147 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(C) 2023 Marvell.\n+ */\n+\n+#ifndef RTE_PDCP_HDR_H\n+#define RTE_PDCP_HDR_H\n+\n+/**\n+ * @file\n+ *\n+ * PDCP-related defines\n+ *\n+ * Based on - ETSI TS 138 323 V17.1.0 (2022-08)\n+ * https://www.etsi.org/deliver/etsi_ts/138300_138399/138323/17.01.00_60/ts_138323v170100p.pdf\n+ */\n+\n+#include <rte_byteorder.h>\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+/**\n+ * 4.3.1\n+ *\n+ * Indicate the maximum supported size of a PDCP Control PDU.\n+ */\n+#define RTE_PDCP_CTRL_PDU_SIZE_MAX 9000u\n+\n+/**\n+ * 6.3.4 MAC-I\n+ *\n+ * Indicate the size of MAC-I in PDCP PDU.\n+ */\n+#define RTE_PDCP_MAC_I_LEN 4\n+\n+/**\n+ * Indicate type of control information included in the corresponding PDCP\n+ * Control PDU.\n+ */\n+enum rte_pdcp_ctrl_pdu_type {\n+\tRTE_PDCP_CTRL_PDU_TYPE_STATUS_REPORT = 0,\n+\tRTE_PDCP_CTRL_PDU_TYPE_ROHC_FEEDBACK = 1,\n+\tRTE_PDCP_CTRL_PDU_TYPE_EHC_FEEDBACK = 2,\n+\tRTE_PDCP_CRTL_PDU_TYPE_UDC_FEEDBACK = 3,\n+};\n+\n+/**\n+ * 6.3.7 D/C\n+ *\n+ * This field indicates whether the corresponding PDCP PDU is a\n+ * PDCP Data PDU or a PDCP Control PDU.\n+ */\n+enum rte_pdcp_pdu_type {\n+\tRTE_PDCP_PDU_TYPE_CTRL = 0,\n+\tRTE_PDCP_PDU_TYPE_DATA = 1,\n+};\n+\n+/**\n+ * 6.2.2.1 Data PDU for SRBs\n+ */\n+__extension__\n+struct rte_pdcp_cp_data_pdu_sn_12_hdr {\n+#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n+\tuint8_t sn_11_8 : 4;\t/**< Sequence number bits 8-11 */\n+\tuint8_t r : 4;\t\t/**< Reserved */\n+#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN\n+\tuint8_t r : 4;\t\t/**< Reserved */\n+\tuint8_t sn_11_8 : 4;\t/**< Sequence number bits 8-11 */\n+#endif\n+\tuint8_t sn_7_0;\t\t/**< Sequence number bits 0-7 */\n+} __rte_packed;\n+\n+/**\n+ * 6.2.2.2 Data PDU for DRBs and MRBs with 12 bits PDCP SN\n+ */\n+__extension__\n+struct rte_pdcp_up_data_pdu_sn_12_hdr {\n+#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n+\tuint8_t sn_11_8 : 4;\t/**< Sequence number bits 8-11 */\n+\tuint8_t r : 3;\t\t/**< Reserved */\n+\tuint8_t d_c : 1;\t/**< D/C bit */\n+#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN\n+\tuint8_t d_c : 1;\t/**< D/C bit */\n+\tuint8_t r : 3;\t\t/**< Reserved */\n+\tuint8_t sn_11_8 : 4;\t/**< Sequence number bits 8-11 */\n+#endif\n+\tuint8_t sn_7_0;\t\t/**< Sequence number bits 0-7 */\n+} __rte_packed;\n+\n+/**\n+ * 6.2.2.3 Data PDU for DRBs and MRBs with 18 bits PDCP SN\n+ */\n+__extension__\n+struct rte_pdcp_up_data_pdu_sn_18_hdr {\n+#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n+\tuint8_t sn_17_16 : 2;\t/**< Sequence number bits 16-17 */\n+\tuint8_t r : 5;\t\t/**< Reserved */\n+\tuint8_t d_c : 1;\t/**< D/C bit */\n+#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN\n+\tuint8_t d_c : 1;\t/**< D/C bit */\n+\tuint8_t r : 5;\t\t/**< Reserved */\n+\tuint8_t sn_17_16 : 2;\t/**< Sequence number bits 16-17 */\n+#endif\n+\tuint8_t sn_15_8;\t/**< Sequence number bits 8-15 */\n+\tuint8_t sn_7_0;\t\t/**< Sequence number bits 0-7 */\n+} __rte_packed;\n+\n+/**\n+ * 6.2.3.1 Control PDU for PDCP status report\n+ */\n+__extension__\n+struct rte_pdcp_up_ctrl_pdu_hdr {\n+#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n+\tuint8_t r : 4;\t\t/**< Reserved */\n+\tuint8_t pdu_type : 3;\t/**< Control PDU type */\n+\tuint8_t d_c : 1;\t/**< D/C bit */\n+#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN\n+\tuint8_t d_c : 1;\t/**< D/C bit */\n+\tuint8_t pdu_type : 3;\t/**< Control PDU type */\n+\tuint8_t r : 4;\t\t/**< Reserved */\n+#endif\n+\t/**\n+\t * 6.3.9 FMC\n+\t *\n+\t * First Missing COUNT. This field indicates the COUNT value of the\n+\t * first missing PDCP SDU within the reordering window, i.e. RX_DELIV.\n+\t */\n+\trte_be32_t fmc;\n+\t/**\n+\t * 6.3.10 Bitmap\n+\t *\n+\t * Length: Variable. The length of the bitmap field can be 0.\n+\t *\n+\t * This field indicates which SDUs are missing and which SDUs are\n+\t * correctly received in the receiving PDCP entity. The bit position of\n+\t * Nth bit in the Bitmap is N, i.e., the bit position of the first bit\n+\t * in the Bitmap is 1.\n+\t */\n+\tuint8_t bitmap[];\n+} __rte_packed;\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* RTE_PDCP_HDR_H */\n", "prefixes": [ "v4", "01/22" ] }{ "id": 127567, "url": "