Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/124480/?format=api
http://patchwork.dpdk.org/api/patches/124480/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230224054813.2855914-4-ktejasree@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": "<20230224054813.2855914-4-ktejasree@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230224054813.2855914-4-ktejasree@marvell.com", "date": "2023-02-24T05:48:05", "name": "[03/11] crypto/cnxk: use version field directly", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f71f27c026fb1861d69fa9e6f53f63f8c82052a2", "submitter": { "id": 1789, "url": "http://patchwork.dpdk.org/api/people/1789/?format=api", "name": "Tejasree Kondoj", "email": "ktejasree@marvell.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230224054813.2855914-4-ktejasree@marvell.com/mbox/", "series": [ { "id": 27165, "url": "http://patchwork.dpdk.org/api/series/27165/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=27165", "date": "2023-02-24T05:48:02", "name": "fixes and improvements to cnxk crypto PMD", "version": 1, "mbox": "http://patchwork.dpdk.org/series/27165/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/124480/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/124480/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 9937A41D5B;\n\tFri, 24 Feb 2023 06:48:37 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DAC534113D;\n\tFri, 24 Feb 2023 06:48:26 +0100 (CET)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 143B74111C\n for <dev@dpdk.org>; Fri, 24 Feb 2023 06:48:24 +0100 (CET)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 31O3Mv9S009246 for <dev@dpdk.org>; Thu, 23 Feb 2023 21:48:24 -0800", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3nxfkwa3ax-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 23 Feb 2023 21:48:24 -0800", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.42;\n Thu, 23 Feb 2023 21:48:22 -0800", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.42 via Frontend\n Transport; Thu, 23 Feb 2023 21:48:22 -0800", "from hyd1554.marvell.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 99E343F706F;\n Thu, 23 Feb 2023 21:48:20 -0800 (PST)" ], "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=rDhkIMBgh+V8et+aFhW7QU9HwGUk0tE3KZpS1JC43OI=;\n b=O4SfX5EV8ncw6ra5VQ1CfMyPYc9nX4+lr1wu/wFIS2lVeR9/u0yg8136dgOmPQQXN/48\n 1/90uSM5lL7DlSObc+pmnSj2jh0vlr0IvNZDV8S+HKbHLuDszsJKiXTHTyK/7527yFl1\n I30p+tcEhSqOGCwYzwcSszMa0XMBKWKDy5bdTqbox5LTeuFUm8wVv0DPSNMC9axt0iDA\n Kv4vYcJHrEUcjQ9kPs88ssuzH/agTL7QWWLkN82eKP+dN4+iemVcVLwPiy+YocTOvAbE\n fhyoZ9KYVX2ZnjmBekW6ZzUBrjuxz/Qa1MnAc/qzq5qpwJR4u2k30g+c1PotTqWJCLGB Nw==", "From": "Tejasree Kondoj <ktejasree@marvell.com>", "To": "Akhil Goyal <gakhil@marvell.com>", "CC": "Anoob Joseph <anoobj@marvell.com>, Gowrishankar Muthukrishnan\n <gmuthukrishn@marvell.com>, <dev@dpdk.org>", "Subject": "[PATCH 03/11] crypto/cnxk: use version field directly", "Date": "Fri, 24 Feb 2023 11:18:05 +0530", "Message-ID": "<20230224054813.2855914-4-ktejasree@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230224054813.2855914-1-ktejasree@marvell.com>", "References": "<20230224054813.2855914-1-ktejasree@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "ahnW3559H7m5uT3Qk4xIiXRz7bkrS4WP", "X-Proofpoint-ORIG-GUID": "ahnW3559H7m5uT3Qk4xIiXRz7bkrS4WP", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22\n definitions=2023-02-24_02,2023-02-23_01,2023-02-09_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: Anoob Joseph <anoobj@marvell.com>\n\nAs version field is available in rte_ip_hdr, use it directly instead of\nmasking version_ihl.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\n---\n drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 4 ++--\n drivers/crypto/cnxk/cn9k_ipsec_la_ops.h | 4 ++--\n 2 files changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c b/drivers/crypto/cnxk/cn9k_cryptodev_ops.c\nindex 3a07842e4b..11541b6ab9 100644\n--- a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c\n+++ b/drivers/crypto/cnxk/cn9k_cryptodev_ops.c\n@@ -546,10 +546,10 @@ cn9k_cpt_sec_post_process(struct rte_crypto_op *cop,\n \t\t\t}\n \t\t}\n \n-\t\tif (((ip->version_ihl & 0xf0) >> RTE_IPV4_IHL_MULTIPLIER) == IPVERSION) {\n+\t\tif (ip->version == IPVERSION) {\n \t\t\tm_len = rte_be_to_cpu_16(ip->total_length);\n \t\t} else {\n-\t\t\tPLT_ASSERT(((ip->version_ihl & 0xf0) >> RTE_IPV4_IHL_MULTIPLIER) == 6);\n+\t\t\tPLT_ASSERT((ip->version == 6));\n \t\t\tip6 = (struct rte_ipv6_hdr *)ip;\n \t\t\tm_len = rte_be_to_cpu_16(ip6->payload_len) + sizeof(struct rte_ipv6_hdr);\n \t\t}\ndiff --git a/drivers/crypto/cnxk/cn9k_ipsec_la_ops.h b/drivers/crypto/cnxk/cn9k_ipsec_la_ops.h\nindex 9df41bf65d..85aacb803f 100644\n--- a/drivers/crypto/cnxk/cn9k_ipsec_la_ops.h\n+++ b/drivers/crypto/cnxk/cn9k_ipsec_la_ops.h\n@@ -28,13 +28,13 @@ ipsec_po_out_rlen_get(struct cn9k_sec_session *sess, uint32_t plen, struct rte_m\n \t\tuintptr_t data = (uintptr_t)m_src->buf_addr + m_src->data_off;\n \t\tstruct rte_ipv4_hdr *ip = (struct rte_ipv4_hdr *)data;\n \n-\t\tif (unlikely(((ip->version_ihl & 0xf0) >> RTE_IPV4_IHL_MULTIPLIER) != IPVERSION)) {\n+\t\tif (unlikely(ip->version != IPVERSION)) {\n \t\t\tstruct rte_ipv6_hdr *ip6 = (struct rte_ipv6_hdr *)ip;\n \t\t\tuint8_t *nxt_hdr = (uint8_t *)ip6;\n \t\t\tuint8_t dest_op_cnt = 0;\n \t\t\tint nh = ip6->proto;\n \n-\t\t\tPLT_ASSERT(((ip->version_ihl & 0xf0) >> RTE_IPV4_IHL_MULTIPLIER) == 6);\n+\t\t\tPLT_ASSERT(ip->version == 6);\n \n \t\t\tadj_len = ROC_CPT_TUNNEL_IPV6_HDR_LEN;\n \t\t\tnxt_hdr += ROC_CPT_TUNNEL_IPV6_HDR_LEN;\n", "prefixes": [ "03/11" ] }{ "id": 124480, "url": "