Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/130115/?format=api
http://patchwork.dpdk.org/api/patches/130115/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230811085805.441256-1-ndabilpuram@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": "<20230811085805.441256-1-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230811085805.441256-1-ndabilpuram@marvell.com", "date": "2023-08-11T08:57:35", "name": "[01/31] common/cnxk: add aura ref count mechanism", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "f3c3f54a49f617d8aeb8ae8c5a1a4a504afd4c8f", "submitter": { "id": 1202, "url": "http://patchwork.dpdk.org/api/people/1202/?format=api", "name": "Nithin Dabilpuram", "email": "ndabilpuram@marvell.com" }, "delegate": { "id": 310, "url": "http://patchwork.dpdk.org/api/users/310/?format=api", "username": "jerin", "first_name": "Jerin", "last_name": "Jacob", "email": "jerinj@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230811085805.441256-1-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 29177, "url": "http://patchwork.dpdk.org/api/series/29177/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29177", "date": "2023-08-11T08:57:35", "name": "[01/31] common/cnxk: add aura ref count mechanism", "version": 1, "mbox": "http://patchwork.dpdk.org/series/29177/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/130115/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/130115/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 4F7E243032;\n\tFri, 11 Aug 2023 10:58:15 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 40DC0410E3;\n\tFri, 11 Aug 2023 10:58:15 +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 8BF7F410E3\n for <dev@dpdk.org>; Fri, 11 Aug 2023 10:58:13 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 37AMjx5G001610 for <dev@dpdk.org>; Fri, 11 Aug 2023 01:58:12 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sd8yp9r57-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Fri, 11 Aug 2023 01:58:12 -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.48;\n Fri, 11 Aug 2023 01:58:10 -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.48 via Frontend\n Transport; Fri, 11 Aug 2023 01:58:10 -0700", "from hyd1588t430.caveonetworks.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 7022B3F706D;\n Fri, 11 Aug 2023 01:58:08 -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=pftw1U7JORUEQ3yIcXpg3sxn5xyZMTrRwABznshNmaE=;\n b=U8TuV+Kfm5QIeysikdh+Hi0YpTGrrBG44p6NHRfnGs/W3R8PWwHH0/oeXUWakWAZAbj6\n OxfMJ/VzmvvmcuItPWFHVzJwlq6+QPjch0V7BWcbRjvEI2hJt+N6MD5b2ZeeZyO2H6oo\n /TD9BTQXk2qrdAgRF493SKNcNB9vrNehocqEl48IH04bx8JaQ5KKUeDiW6x0z3il+SMw\n 8VKqYqX3cIaMIufM0VM+SC6gqLfECq2MggDGLhpN1kZW88DS3lhybwrmci91p3jrqrWV\n q+r61YeGaUjkdgMtXCaMIZ/a05cL90NE2SWbEhnKDZeQ3AWB4/ZsmVZdGMzNyGTEwQsn 7w==", "From": "Nithin Dabilpuram <ndabilpuram@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": "<jerinj@marvell.com>, <dev@dpdk.org>", "Subject": "[PATCH 01/31] common/cnxk: add aura ref count mechanism", "Date": "Fri, 11 Aug 2023 14:27:35 +0530", "Message-ID": "<20230811085805.441256-1-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "lp2PfJpHwDA8JMxZmh5N5O_5bidfKDRM", "X-Proofpoint-GUID": "lp2PfJpHwDA8JMxZmh5N5O_5bidfKDRM", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n definitions=2023-08-10_20,2023-08-10_01,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: Sunil Kumar Kori <skori@marvell.com>\n\nEach RQ can be associated with lpb_aura and spb_aura.\nlpb_aura or spb_aura is shared across multiple RQs then\ncleanup via one RQ will reset the aura context.\n\nTo prevent, adding ref count mechanism.\n\nSigned-off-by: Sunil Kumar Kori <skori@marvell.com>\n---\n drivers/common/cnxk/roc_nix_fc.c | 6 ++++++\n drivers/common/cnxk/roc_npa_priv.h | 1 +\n 2 files changed, 7 insertions(+)", "diff": "diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnxk/roc_nix_fc.c\nindex d8ca5f9996..1f5ef960da 100644\n--- a/drivers/common/cnxk/roc_nix_fc.c\n+++ b/drivers/common/cnxk/roc_nix_fc.c\n@@ -537,6 +537,7 @@ roc_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t ena, ui\n \t\t\t\t\tplt_err(\"Enabling backpressue failed on aura 0x%\" PRIx64,\n \t\t\t\t\t\tpool_id);\n \t\t\t} else {\n+\t\t\t\tlf->aura_attr[aura_id].ref_count++;\n \t\t\t\tplt_info(\"Ignoring port=%u tc=%u config on shared aura 0x%\" PRIx64,\n \t\t\t\t\t roc_nix->port_id, tc, pool_id);\n \t\t\t}\n@@ -552,6 +553,8 @@ roc_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t ena, ui\n \tif (ena) {\n \t\tif (roc_npa_aura_bp_configure(pool_id, nix->bpid[tc], bp_intf, bp_thresh, true))\n \t\t\tplt_err(\"Enabling backpressue failed on aura 0x%\" PRIx64, pool_id);\n+\t\telse\n+\t\t\tlf->aura_attr[aura_id].ref_count++;\n \t} else {\n \t\tbool found = !!force;\n \n@@ -561,6 +564,9 @@ roc_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t ena, ui\n \t\t\t\tfound = true;\n \t\tif (!found)\n \t\t\treturn;\n+\t\telse if ((lf->aura_attr[aura_id].ref_count > 0) &&\n+\t\t\t --lf->aura_attr[aura_id].ref_count)\n+\t\t\treturn;\n \n \t\tif (roc_npa_aura_bp_configure(pool_id, 0, 0, 0, false))\n \t\t\tplt_err(\"Disabling backpressue failed on aura 0x%\" PRIx64, pool_id);\ndiff --git a/drivers/common/cnxk/roc_npa_priv.h b/drivers/common/cnxk/roc_npa_priv.h\nindex d2118cc4fb..704d93d5dc 100644\n--- a/drivers/common/cnxk/roc_npa_priv.h\n+++ b/drivers/common/cnxk/roc_npa_priv.h\n@@ -49,6 +49,7 @@ struct npa_aura_lim {\n \n struct npa_aura_attr {\n \tint buf_type[ROC_NPA_BUF_TYPE_END];\n+\tuint16_t ref_count;\n };\n \n struct dev;\n", "prefixes": [ "01/31" ] }{ "id": 130115, "url": "