Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/133929/?format=api
http://patches.dpdk.org/api/patches/133929/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231107064010.1396308-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": "<20231107064010.1396308-1-psatheesh@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20231107064010.1396308-1-psatheesh@marvell.com", "date": "2023-11-07T06:40:09", "name": "common/cnxk: fix setting channel mask for SDP interfaces", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "d2d98acc59f1562902f5fd071f3b8f1d8c293160", "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/20231107064010.1396308-1-psatheesh@marvell.com/mbox/", "series": [ { "id": 30177, "url": "http://patches.dpdk.org/api/series/30177/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30177", "date": "2023-11-07T06:40:09", "name": "common/cnxk: fix setting channel mask for SDP interfaces", "version": 1, "mbox": "http://patches.dpdk.org/series/30177/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/133929/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/133929/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 2A7D3432C1;\n\tTue, 7 Nov 2023 07:40:20 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id A695E402BC;\n\tTue, 7 Nov 2023 07:40:19 +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 841884003C;\n Tue, 7 Nov 2023 07:40:18 +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 3A72F3VB024448; Mon, 6 Nov 2023 22:40:17 -0800", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3u5nfm07ku-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Mon, 06 Nov 2023 22:40:17 -0800", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Mon, 6 Nov 2023 22:40:15 -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.48 via Frontend\n Transport; Mon, 6 Nov 2023 22:40:15 -0800", "from satheeshpaullabpc.. (unknown [10.28.34.33])\n by maili.marvell.com (Postfix) with ESMTP id 4D74E3F7087;\n Mon, 6 Nov 2023 22:40:13 -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 : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=CHdbcuWhkYhBBSi4sU67oVN4YMuuK3kjzlJrfILiIM0=;\n b=Azgr2TnU8O+dP6+YTdJRqSf3Ygu/sSfjDd5ZLBUlT55ifIgzsZy4N0763gR+g6zdehbt\n C4wq3LH2n+UEnAX+dg2pHZDJSpmcjCS1LF8zJXWxaJtROYmmzh6KiGi8tm5+VhZ0q+O1\n sgcZMltLt6dWi5q/bV2rr2Rtb2w7UIseYv2ZigFf9XU3MY57rI0sp8NKnKOoKfUtndcB\n cauq6WSidenbQvLln4vhMUsbNgjXW7pmn3C4shs2wvca10exiFVh0sm+LFYNZ1Zus/zF\n yphzbshAQRC71tFwawiIaespcJjb6OfepbUT8eLiP9pi6eHw7y3m3wLTDAR8++JYps+V 8Q==", "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>, Satheesh Paul <psatheesh@marvell.com>", "CC": "<dev@dpdk.org>, <stable@dpdk.org>", "Subject": "[dpdk-dev] [PATCH] common/cnxk: fix setting channel mask for SDP\n interfaces", "Date": "Tue, 7 Nov 2023 12:10:09 +0530", "Message-ID": "<20231107064010.1396308-1-psatheesh@marvell.com>", "X-Mailer": "git-send-email 2.39.2", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "zROCXLgbLmjP_QuiZda1ZwHDeIiTmwlb", "X-Proofpoint-ORIG-GUID": "zROCXLgbLmjP_QuiZda1ZwHDeIiTmwlb", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26\n definitions=2023-11-06_15,2023-11-02_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: Satheesh Paul <psatheesh@marvell.com>\n\nChannel mask field is incorrectly returned as 16 bits.\nFixing it by truncating to 12 bits.\n\nFixes: 2703f1fa3200 (\"common/cnxk: fix setting channel mask for SDP interfaces\")\nCc: stable@dpdk.org\n\nSigned-off-by: Satheesh Paul <psatheesh@marvell.com>\n---\n drivers/common/cnxk/roc_npc.c | 5 +++--\n drivers/common/cnxk/roc_npc.h | 2 ++\n drivers/common/cnxk/version.map | 1 +\n 3 files changed, 6 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/common/cnxk/roc_npc.c b/drivers/common/cnxk/roc_npc.c\nindex 4173dd2933..0fd1081d43 100644\n--- a/drivers/common/cnxk/roc_npc.c\n+++ b/drivers/common/cnxk/roc_npc.c\n@@ -1439,7 +1439,7 @@ npc_inline_dev_ipsec_action_free(struct npc *npc, struct roc_npc_flow *flow)\n \treturn 1;\n }\n \n-static void\n+void\n roc_npc_sdp_channel_get(struct roc_npc *roc_npc, uint16_t *chan_base, uint16_t *chan_mask)\n {\n \tstruct roc_nix *roc_nix = roc_npc->roc_nix;\n@@ -1454,8 +1454,9 @@ roc_npc_sdp_channel_get(struct roc_npc *roc_npc, uint16_t *chan_base, uint16_t *\n \t\tnum_bits = (sizeof(uint32_t) * 8) - plt_clz32(range) - 1;\n \t\t/* Set mask for (15 - numbits) MSB bits */\n \t\t*chan_mask = (uint16_t)~GENMASK(num_bits, 0);\n+\t\t*chan_mask &= 0xFFF;\n \t} else {\n-\t\t*chan_mask = (uint16_t)GENMASK(15, 0);\n+\t\t*chan_mask = (uint16_t)GENMASK(11, 0);\n \t}\n \n \tmask = (uint16_t)GENMASK(num_bits, 0);\ndiff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h\nindex ad88cf34a4..e9870a162a 100644\n--- a/drivers/common/cnxk/roc_npc.h\n+++ b/drivers/common/cnxk/roc_npc.h\n@@ -451,4 +451,6 @@ int __roc_api roc_npc_validate_portid_action(struct roc_npc *roc_npc_src,\n int __roc_api roc_npc_mcam_init(struct roc_npc *roc_npc, struct roc_npc_flow *flow, int mcam_id);\n int __roc_api roc_npc_mcam_move(struct roc_npc *roc_npc, uint16_t old_ent, uint16_t new_ent);\n void *__roc_api roc_npc_aged_flow_ctx_get(struct roc_npc *roc_npc, uint32_t mcam_id);\n+void __roc_api roc_npc_sdp_channel_get(struct roc_npc *roc_npc, uint16_t *chan_base,\n+\t\t\t\t uint16_t *chan_mask);\n #endif /* _ROC_NPC_H_ */\ndiff --git a/drivers/common/cnxk/version.map b/drivers/common/cnxk/version.map\nindex fffd2064be..aa884a8fe2 100644\n--- a/drivers/common/cnxk/version.map\n+++ b/drivers/common/cnxk/version.map\n@@ -459,6 +459,7 @@ INTERNAL {\n \troc_npc_mcam_read_counter;\n \troc_npc_inl_mcam_read_counter;\n \troc_npc_profile_name_get;\n+\troc_npc_sdp_channel_get;\n \troc_npc_validate_portid_action;\n \troc_ot_ipsec_inb_sa_init;\n \troc_ot_ipsec_outb_sa_init;\n", "prefixes": [] }{ "id": 133929, "url": "