Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110560/?format=api
http://patches.dpdk.org/api/patches/110560/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220502084730.609989-1-psatheesh@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": "<20220502084730.609989-1-psatheesh@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220502084730.609989-1-psatheesh@marvell.com", "date": "2022-05-02T08:47:30", "name": "common/cnxk: fix channel number setting in MCAM entries", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3a9968187bd6e212173835f46954d8290c196182", "submitter": { "id": 1663, "url": "http://patches.dpdk.org/api/people/1663/?format=api", "name": "Satheesh Paul Antonysamy", "email": "psatheesh@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/20220502084730.609989-1-psatheesh@marvell.com/mbox/", "series": [ { "id": 22756, "url": "http://patches.dpdk.org/api/series/22756/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22756", "date": "2022-05-02T08:47:30", "name": "common/cnxk: fix channel number setting in MCAM entries", "version": 1, "mbox": "http://patches.dpdk.org/series/22756/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/110560/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/110560/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 DDCB9A0093;\n\tMon, 2 May 2022 10:47:45 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8409740F35;\n\tMon, 2 May 2022 10:47:45 +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 203BE40E28;\n Mon, 2 May 2022 10:47:43 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.5/8.16.1.2) with ESMTP id\n 2420xO32012660;\n Mon, 2 May 2022 01:47:43 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fs2fmw6gc-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 02 May 2022 01:47:42 -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.18;\n Mon, 2 May 2022 01:47:41 -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; Mon, 2 May 2022 01:47:41 -0700", "from localhost.localdomain (unknown [10.28.34.33])\n by maili.marvell.com (Postfix) with ESMTP id 32F2A3F703F;\n Mon, 2 May 2022 01:47:38 -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 : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=1gigiV4jxNxkmvXx2tSlEGNCDBtzShUdydPsmjagToA=;\n b=MJYkV0yCeh3MnLYVdMqzElnWAq1VPKYZbijhqUYU0riVPbQp8YsMoadsokDLEj1DiupA\n wtxGVc4ruIcfMOcn7Y2oI0Sy0kkfHkp3bA/+W7EvuPDoK2xr2N1ICjsawz+3E1LVUqNk\n MPnEANBTIVQc+baD2veh4uWjZGl2Qpb94GSohum8qqcGz6YddfEzT9gdPDWGVmF81Mi/\n iAmhomR3CnPZwcSYs/x5qBQVugGMLySluPj/TZje/khUNTam/ScNtU0k1IiDADrcdAuk\n WowsbfdqG280QYn+k8Y3pvIHKRsQ+Zv91cK8ENVFJTqlx7Sp+e5Bhf4qA/9cgu3y0XVr sA==", "From": "<psatheesh@marvell.com>", "To": "Nithin Dabilpuram <ndabilpuram@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>, Satha Rao\n <skoteshwar@marvell.com>", "CC": "<dev@dpdk.org>, Satheesh Paul <psatheesh@marvell.com>, <stable@dpdk.org>", "Subject": "[dpdk-dev] [PATCH] common/cnxk: fix channel number setting in MCAM\n entries", "Date": "Mon, 2 May 2022 14:17:30 +0530", "Message-ID": "<20220502084730.609989-1-psatheesh@marvell.com>", "X-Mailer": "git-send-email 2.25.4", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "MRUcUY3Mep8bGqOBK9pWsL5dG9FOZBMF", "X-Proofpoint-ORIG-GUID": "MRUcUY3Mep8bGqOBK9pWsL5dG9FOZBMF", "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-05-02_03,2022-04-28_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: Satheesh Paul <psatheesh@marvell.com>\n\nAdding changes to accommodate the following requirements\nwhile masking the channel number.\n1. For CN10K device, channel number should not be masked\n for first pass rules with RTE_FLOW_ACTION_TYPE_SECURITY\n action. And channel number should be masked for all\n other flow rules.\n2. For CN9K device channel number should not be masked.\n\nFixes: 29dcc20985 (\"common/cnxk: support for CPT second pass flow rules\")\nCc: stable@dpdk.org\n\nSigned-off-by: Satheesh Paul <psatheesh@marvell.com>\nReviewed-by: Kiran Kumar Kokkilagadda <kirankumark@marvell.com>\n---\n drivers/common/cnxk/roc_npc_mcam.c | 30 ++++++++++++++++++------------\n 1 file changed, 18 insertions(+), 12 deletions(-)", "diff": "diff --git a/drivers/common/cnxk/roc_npc_mcam.c b/drivers/common/cnxk/roc_npc_mcam.c\nindex bccbaaa51f..0ae58da0ba 100644\n--- a/drivers/common/cnxk/roc_npc_mcam.c\n+++ b/drivers/common/cnxk/roc_npc_mcam.c\n@@ -508,19 +508,25 @@ npc_mcam_set_channel(struct roc_npc_flow *flow,\n \treq->entry_data.kw_mask[0] &= ~(GENMASK(11, 0));\n \tflow->mcam_data[0] &= ~(GENMASK(11, 0));\n \tflow->mcam_mask[0] &= ~(GENMASK(11, 0));\n+\tchan = channel;\n+\tmask = chan_mask;\n \n-\tif (is_second_pass) {\n-\t\tchan = (channel | NIX_CHAN_CPT_CH_START);\n-\t\tmask = (chan_mask | NIX_CHAN_CPT_CH_START);\n-\t} else {\n-\t\t/*\n-\t\t * Clear bits 10 & 11 corresponding to CPT\n-\t\t * channel. By default, rules should match\n-\t\t * both first pass packets and second pass\n-\t\t * packets from CPT.\n-\t\t */\n-\t\tchan = (channel & NIX_CHAN_CPT_X2P_MASK);\n-\t\tmask = (chan_mask & NIX_CHAN_CPT_X2P_MASK);\n+\tif (roc_model_runtime_is_cn10k()) {\n+\t\tif (is_second_pass) {\n+\t\t\tchan = (channel | NIX_CHAN_CPT_CH_START);\n+\t\t\tmask = (chan_mask | NIX_CHAN_CPT_CH_START);\n+\t\t} else {\n+\t\t\tif (!(flow->npc_action & NIX_RX_ACTIONOP_UCAST_IPSEC)) {\n+\t\t\t\t/*\n+\t\t\t\t * Clear bits 10 & 11 corresponding to CPT\n+\t\t\t\t * channel. By default, rules should match\n+\t\t\t\t * both first pass packets and second pass\n+\t\t\t\t * packets from CPT.\n+\t\t\t\t */\n+\t\t\t\tchan = (channel & NIX_CHAN_CPT_X2P_MASK);\n+\t\t\t\tmask = (chan_mask & NIX_CHAN_CPT_X2P_MASK);\n+\t\t\t}\n+\t\t}\n \t}\n \n \treq->entry_data.kw[0] |= (uint64_t)chan;\n", "prefixes": [] }{ "id": 110560, "url": "