Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110704/?format=api
http://patches.dpdk.org/api/patches/110704/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220505125557.8828-2-ndabilpuram@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": "<20220505125557.8828-2-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220505125557.8828-2-ndabilpuram@marvell.com", "date": "2022-05-05T12:55:31", "name": "[v3,02/28] net/cnxk: add receive channel backpressure for SDP", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "76f5f02f19ef88507e06ea1eea0f45ffab914612", "submitter": { "id": 1202, "url": "http://patches.dpdk.org/api/people/1202/?format=api", "name": "Nithin Dabilpuram", "email": "ndabilpuram@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/20220505125557.8828-2-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 22796, "url": "http://patches.dpdk.org/api/series/22796/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22796", "date": "2022-05-05T12:55:30", "name": "[v3,01/28] common/cnxk: add multi channel support for SDP send queues", "version": 3, "mbox": "http://patches.dpdk.org/series/22796/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/110704/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/110704/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 34444A04FF;\n\tThu, 5 May 2022 14:56:13 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D944A40E5A;\n\tThu, 5 May 2022 14:56:09 +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 B5E6340042\n for <dev@dpdk.org>; Thu, 5 May 2022 14:56:07 +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 2458BaQs012050\n for <dev@dpdk.org>; Thu, 5 May 2022 05:56:06 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fuscx4y4h-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 05 May 2022 05:56:06 -0700", "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.2;\n Thu, 5 May 2022 05:56:05 -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; Thu, 5 May 2022 05:56:05 -0700", "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id CB0CE3F704D;\n Thu, 5 May 2022 05:56:02 -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-type; s=pfpt0220; bh=QnqMzW6W4LzpzILFYSF0zL0T9HhPhhvmLDystFSdo8U=;\n b=JpoZtj3R0inkskxtRMSFnKmBccSULYX3u0HhL+8D+9NBPPVTESkhVm0B5NHZs88BUAMD\n Cs3knQeh3kPIgOfwwRpgz/5Di2cPwEaarR08mzIBHKUs7Lpxgdaz0qAAJh112R6oAa0j\n Y240aS1/71FAwuWO1qaxDroi+n3jewTGztG7Jqsajs++WGvP16qI19X8kb5kCz+vqKiM\n 5bZX5yOoTtwME32t94Av5Z4z9SNYbjHHwzY3LOuUl6VtFZ0H7RANxt5uxn8Aep5TrmWf\n sge1FY6ZAGeRsAT02dSACQn6sz52T234um/J4RG/pTeXn3GofA/i6A3KfpUCpOCJXwz4 7g==", "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>", "To": "<jerinj@marvell.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>, \"Kiran\n Kumar K\" <kirankumark@marvell.com>, Sunil Kumar Kori <skori@marvell.com>,\n Satha Rao <skoteshwar@marvell.com>", "CC": "<dev@dpdk.org>, Radha Mohan Chintakuntla <radhac@marvell.com>", "Subject": "[PATCH v3 02/28] net/cnxk: add receive channel backpressure for SDP", "Date": "Thu, 5 May 2022 18:25:31 +0530", "Message-ID": "<20220505125557.8828-2-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.8.4", "In-Reply-To": "<20220505125557.8828-1-ndabilpuram@marvell.com>", "References": "<20220419055921.10566-1-ndabilpuram@marvell.com>\n <20220505125557.8828-1-ndabilpuram@marvell.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Proofpoint-GUID": "6TFs_RbEHVNjundwzazTM4STcVGlUQz5", "X-Proofpoint-ORIG-GUID": "6TFs_RbEHVNjundwzazTM4STcVGlUQz5", "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-05_05,2022-05-05_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: Radha Mohan Chintakuntla <radhac@marvell.com>\n\nThe SDP interfaces also need to be configured for NIX receive channel\nbackpressure for packet receive.\n\nSigned-off-by: Radha Mohan Chintakuntla <radhac@marvell.com>\n---\n drivers/common/cnxk/roc_nix_fc.c | 11 +++++------\n drivers/net/cnxk/cnxk_ethdev.c | 3 +++\n 2 files changed, 8 insertions(+), 6 deletions(-)", "diff": "diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnxk/roc_nix_fc.c\nindex 8e31443..a0505bd 100644\n--- a/drivers/common/cnxk/roc_nix_fc.c\n+++ b/drivers/common/cnxk/roc_nix_fc.c\n@@ -38,16 +38,13 @@ nix_fc_rxchan_bpid_set(struct roc_nix *roc_nix, bool enable)\n \tstruct nix_bp_cfg_rsp *rsp;\n \tint rc = -ENOSPC, i;\n \n-\tif (roc_nix_is_sdp(roc_nix))\n-\t\treturn 0;\n-\n \tif (enable) {\n \t\treq = mbox_alloc_msg_nix_bp_enable(mbox);\n \t\tif (req == NULL)\n \t\t\treturn rc;\n \n \t\treq->chan_base = 0;\n-\t\tif (roc_nix_is_lbk(roc_nix))\n+\t\tif (roc_nix_is_lbk(roc_nix) || roc_nix_is_sdp(roc_nix))\n \t\t\treq->chan_cnt = NIX_LBK_MAX_CHAN;\n \t\telse\n \t\t\treq->chan_cnt = NIX_CGX_MAX_CHAN;\n@@ -203,7 +200,8 @@ nix_fc_cq_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)\n int\n roc_nix_fc_config_get(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)\n {\n-\tif (roc_nix_is_vf_or_sdp(roc_nix) && !roc_nix_is_lbk(roc_nix))\n+\tif (!roc_nix_is_pf(roc_nix) && !roc_nix_is_lbk(roc_nix) &&\n+\t !roc_nix_is_sdp(roc_nix))\n \t\treturn 0;\n \n \tif (fc_cfg->type == ROC_NIX_FC_CQ_CFG)\n@@ -219,7 +217,8 @@ roc_nix_fc_config_get(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)\n int\n roc_nix_fc_config_set(struct roc_nix *roc_nix, struct roc_nix_fc_cfg *fc_cfg)\n {\n-\tif (roc_nix_is_vf_or_sdp(roc_nix) && !roc_nix_is_lbk(roc_nix))\n+\tif (!roc_nix_is_pf(roc_nix) && !roc_nix_is_lbk(roc_nix) &&\n+\t !roc_nix_is_sdp(roc_nix))\n \t\treturn 0;\n \n \tif (fc_cfg->type == ROC_NIX_FC_CQ_CFG)\ndiff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c\nindex 1fa4131..bd31a9a 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.c\n+++ b/drivers/net/cnxk/cnxk_ethdev.c\n@@ -310,6 +310,9 @@ nix_init_flow_ctrl_config(struct rte_eth_dev *eth_dev)\n \tstruct cnxk_fc_cfg *fc = &dev->fc_cfg;\n \tint rc;\n \n+\tif (roc_nix_is_sdp(&dev->nix))\n+\t\treturn 0;\n+\n \t/* To avoid Link credit deadlock on Ax, disable Tx FC if it's enabled */\n \tif (roc_model_is_cn96_ax() &&\n \t dev->npc.switch_header_type != ROC_PRIV_FLAGS_HIGIG)\n", "prefixes": [ "v3", "02/28" ] }{ "id": 110704, "url": "