Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/119110/?format=api
https://patches.dpdk.org/api/patches/119110/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221025160539.14613-1-pbhagavatula@marvell.com/", "project": { "id": 1, "url": "https://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": "<20221025160539.14613-1-pbhagavatula@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20221025160539.14613-1-pbhagavatula@marvell.com", "date": "2022-10-25T16:05:35", "name": "[v6,1/5] examples/l3fwd: fix port group mask generation", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "d4a61367faee726d790eee32f5ccf42dbd1b72af", "submitter": { "id": 1183, "url": "https://patches.dpdk.org/api/people/1183/?format=api", "name": "Pavan Nikhilesh Bhagavatula", "email": "pbhagavatula@marvell.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20221025160539.14613-1-pbhagavatula@marvell.com/mbox/", "series": [ { "id": 25425, "url": "https://patches.dpdk.org/api/series/25425/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=25425", "date": "2022-10-25T16:05:35", "name": "[v6,1/5] examples/l3fwd: fix port group mask generation", "version": 6, "mbox": "https://patches.dpdk.org/series/25425/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/119110/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/119110/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 AD955A054A;\n\tTue, 25 Oct 2022 18:05:46 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A29C542C1F;\n\tTue, 25 Oct 2022 18:05:46 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 8561942C1D;\n Tue, 25 Oct 2022 18:05:44 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 29PFToC3006323;\n Tue, 25 Oct 2022 09:05:43 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3kcg1muvsp-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 25 Oct 2022 09:05:42 -0700", "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.18;\n Tue, 25 Oct 2022 09:05:40 -0700", "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.18 via Frontend\n Transport; Tue, 25 Oct 2022 09:05:40 -0700", "from MININT-80QBFE8.corp.innovium.com (unknown [10.28.161.88])\n by maili.marvell.com (Postfix) with ESMTP id BDF213F7087;\n Tue, 25 Oct 2022 09:05:37 -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=6v061wy9Qyt2OZCUcBHQ+goEFfkOKdOAMBFm7JzYvuM=;\n b=Hf4GTyvIPbKFoBHcjH6FQ5vEws9gLgFsEbjRkgfLjajn9VinCY+SXqlip78YuadeBcli\n WiSmZaYXoGa9PfpLYRYbkuKkDf731juypOk9jD/Y+J6R37PvGdN+be0dBTVb+7hrAXy7\n fx2Xqnq36SNjjeBnTxcPKK+eV/nMRAiDrIyPu6kJoqhsS4p/lBvcHDKAyAzkIkPSRt02\n 5RmTtNGHFLeJAZCQq5RQv4LwfIfBMwy8MtG526xEUfPa+kdd3WpgbOkqfsOQAyl4DUA2\n Sw6TwMnOgCUgt9wVadjtiBkylp/rObZtMhe6hVcZHhLjJVxPsHs66ZUKgZ7e+fNUYea2 KQ==", "From": "<pbhagavatula@marvell.com>", "To": "<jerinj@marvell.com>, <thomas@monjalon.net>, David Christensen\n <drc@linux.vnet.ibm.com>", "CC": "<dev@dpdk.org>, Pavan Nikhilesh <pbhagavatula@marvell.com>,\n <stable@dpdk.org>, Shijith Thotton <sthotton@marvell.com>", "Subject": "[PATCH v6 1/5] examples/l3fwd: fix port group mask generation", "Date": "Tue, 25 Oct 2022 21:35:35 +0530", "Message-ID": "<20221025160539.14613-1-pbhagavatula@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20221011101207.4489-1-pbhagavatula@marvell.com>", "References": "<20221011101207.4489-1-pbhagavatula@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "RRGbiEUyqSPYv8nSyw7kh75WolJ31cwi", "X-Proofpoint-GUID": "RRGbiEUyqSPYv8nSyw7kh75WolJ31cwi", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1\n definitions=2022-10-25_09,2022-10-25_01,2022-06-22_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: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nFix port group mask generation in altivec, vec_any_eq returns\n0 or 1 while port_groupx4 expects comparison mask result.\n\nFixes: 2193b7467f7a (\"examples/l3fwd: optimize packet processing on powerpc\")\nCc: stable@dpdk.org\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\nAcked-by: Shijith Thotton <sthotton@marvell.com>\n---\n v6 Changes:\n - Minor optimiazation to process_dst_port NEON.\n\n v5 Changes:\n - Fix compilation errors.\n\n v4 Changes:\n - Fix missing `rte_free`.\n\n v3 Changes:\n - PPC optimize port mask generation.\n - Fix aarch32 compilation.\n\n v2 Changes:\n - Fix PPC, RISC-V, aarch32 compilation.\n\n examples/common/altivec/port_group.h | 11 ++++++++---\n 1 file changed, 8 insertions(+), 3 deletions(-)\n\n--\n2.25.1", "diff": "diff --git a/examples/common/altivec/port_group.h b/examples/common/altivec/port_group.h\nindex 5e209b02fa..1c05bc025a 100644\n--- a/examples/common/altivec/port_group.h\n+++ b/examples/common/altivec/port_group.h\n@@ -26,12 +26,17 @@ port_groupx4(uint16_t pn[FWDSTEP + 1], uint16_t *lp,\n \t\tuint16_t u16[FWDSTEP + 1];\n \t\tuint64_t u64;\n \t} *pnum = (void *)pn;\n-\n+\t__vector unsigned long long result;\n+\tconst __vector unsigned int perm_mask = {0x00204060, 0x80808080,\n+\t\t\t\t\t\t 0x80808080, 0x80808080};\n \tint32_t v;\n\n-\tv = vec_any_eq(dp1, dp2);\n-\n+\tdp1 = (__vector unsigned short)vec_cmpeq(dp1, dp2);\n+\tdp1 = vec_mergeh(dp1, dp1);\n+\tresult = (__vector unsigned long long)vec_vbpermq(\n+\t\t(__vector unsigned char)dp1, (__vector unsigned char)perm_mask);\n\n+\tv = result[1];\n \t/* update last port counter. */\n \tlp[0] += gptbl[v].lpv;\n\n", "prefixes": [ "v6", "1/5" ] }{ "id": 119110, "url": "