Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/97738/?format=api
http://patchwork.dpdk.org/api/patches/97738/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20210902021505.17607-13-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": "<20210902021505.17607-13-ndabilpuram@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210902021505.17607-13-ndabilpuram@marvell.com", "date": "2021-09-02T02:14:50", "name": "[12/27] common/cnxk: setup aura bp conf based on nix", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a84e6fda748e92bcf6aa65dbb574be4c60f231ee", "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/20210902021505.17607-13-ndabilpuram@marvell.com/mbox/", "series": [ { "id": 18612, "url": "http://patchwork.dpdk.org/api/series/18612/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=18612", "date": "2021-09-02T02:14:38", "name": "net/cnxk: support for inline ipsec", "version": 1, "mbox": "http://patchwork.dpdk.org/series/18612/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/97738/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/97738/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 1AB66A0C4C;\n\tThu, 2 Sep 2021 04:18:08 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3CEBC41167;\n\tThu, 2 Sep 2021 04:17:23 +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 32C3841166\n for <dev@dpdk.org>; Thu, 2 Sep 2021 04:17:21 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 181HQCpk011801\n for <dev@dpdk.org>; Wed, 1 Sep 2021 19:17:20 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 3atdwq9hsh-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Wed, 01 Sep 2021 19:17:20 -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 Wed, 1 Sep 2021 19:17:18 -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; Wed, 1 Sep 2021 19:17:18 -0700", "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 7686F3F7050;\n Wed, 1 Sep 2021 19:17:16 -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=mUk8xEuKp7zuF72p22RvkRI/ZC2GbRCiRcVACY3dq4A=;\n b=RnwGE8Ch9xKPeTo6Sq4VRd5rmV3I8Gk2zeaeFjWOyeeWzcO1000vHx1K1Y1hl0JoPTAd\n uQ4AwMRDpB/p9KSkKR8qKclE+56yMT11fqzT6vwwBbUTapAIB96y2bXd9DfskuWvuSo8\n g6tvJotnWRlWhgw1CjqAeibLK8yHBwLT2vY6VK5vxOwUB/spo0cn4fefyCus6bHOxjUZ\n +n7IwL0sceNyw6WlAhm6kS1d51u1Q0n7ddRslKvh1h7Q6XtfynWYHlirdqb0Delspx7W\n TUmVdxW+h+qO7Tf/mZkUJO6cavLTon2nKrP9CTmPDEcVTysHEiphADoC2G+gFEZfD6c0 Ng==", "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>, <schalla@marvell.com>, <dev@dpdk.org>", "Date": "Thu, 2 Sep 2021 07:44:50 +0530", "Message-ID": "<20210902021505.17607-13-ndabilpuram@marvell.com>", "X-Mailer": "git-send-email 2.8.4", "In-Reply-To": "<20210902021505.17607-1-ndabilpuram@marvell.com>", "References": "<20210902021505.17607-1-ndabilpuram@marvell.com>", "MIME-Version": "1.0", "Content-Type": "text/plain", "X-Proofpoint-ORIG-GUID": "sZRE5Kw9gLg6W7YjFEXbwlZY3bMmopFo", "X-Proofpoint-GUID": "sZRE5Kw9gLg6W7YjFEXbwlZY3bMmopFo", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475\n definitions=2021-09-01_05,2021-09-01_01,2020-04-07_01", "Subject": "[dpdk-dev] [PATCH 12/27] common/cnxk: setup aura bp conf based on\n nix", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Currently only nix0 conf is setup in Aura for backpressure.\nThis patch adds support for nix1 as well.\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n drivers/common/cnxk/roc_nix_fc.c | 23 +++++++++++++++++++----\n 1 file changed, 19 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/common/cnxk/roc_nix_fc.c b/drivers/common/cnxk/roc_nix_fc.c\nindex f17eba4..7eac7d0 100644\n--- a/drivers/common/cnxk/roc_nix_fc.c\n+++ b/drivers/common/cnxk/roc_nix_fc.c\n@@ -284,8 +284,18 @@ rox_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t ena,\n \tlimit = rsp->aura.limit;\n \t/* BP is already enabled. */\n \tif (rsp->aura.bp_ena) {\n+\t\tuint16_t bpid;\n+\t\tbool nix1;\n+\n+\t\tnix1 = !!(rsp->aura.bp_ena & 0x2);\n+\t\tif (nix1)\n+\t\t\tbpid = rsp->aura.nix1_bpid;\n+\t\telse\n+\t\t\tbpid = rsp->aura.nix0_bpid;\n+\n \t\t/* If BP ids don't match disable BP. */\n-\t\tif ((rsp->aura.nix0_bpid != nix->bpid[0]) && !force) {\n+\t\tif (((nix1 != nix->is_nix1) || (bpid != nix->bpid[0])) &&\n+\t\t !force) {\n \t\t\treq = mbox_alloc_msg_npa_aq_enq(mbox);\n \t\t\tif (req == NULL)\n \t\t\t\treturn;\n@@ -315,14 +325,19 @@ rox_nix_fc_npa_bp_cfg(struct roc_nix *roc_nix, uint64_t pool_id, uint8_t ena,\n \treq->op = NPA_AQ_INSTOP_WRITE;\n \n \tif (ena) {\n-\t\treq->aura.nix0_bpid = nix->bpid[0];\n-\t\treq->aura_mask.nix0_bpid = ~(req->aura_mask.nix0_bpid);\n+\t\tif (nix->is_nix1) {\n+\t\t\treq->aura.nix1_bpid = nix->bpid[0];\n+\t\t\treq->aura_mask.nix1_bpid = ~(req->aura_mask.nix1_bpid);\n+\t\t} else {\n+\t\t\treq->aura.nix0_bpid = nix->bpid[0];\n+\t\t\treq->aura_mask.nix0_bpid = ~(req->aura_mask.nix0_bpid);\n+\t\t}\n \t\treq->aura.bp = NIX_RQ_AURA_THRESH(\n \t\t\tlimit > 128 ? 256 : limit); /* 95% of size*/\n \t\treq->aura_mask.bp = ~(req->aura_mask.bp);\n \t}\n \n-\treq->aura.bp_ena = !!ena;\n+\treq->aura.bp_ena = (!!ena << nix->is_nix1);\n \treq->aura_mask.bp_ena = ~(req->aura_mask.bp_ena);\n \n \tmbox_process(mbox);\n", "prefixes": [ "12/27" ] }{ "id": 97738, "url": "