get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/66576/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 66576,
    "url": "http://patches.dpdk.org/api/patches/66576/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200312111907.31555-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": "<20200312111907.31555-2-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200312111907.31555-2-ndabilpuram@marvell.com",
    "date": "2020-03-12T11:18:57",
    "name": "[01/11] net/octeontx2: setup link config based on BP level",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c6f85e2ed937fc168de2113a0a3070bb80bb7cf3",
    "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/20200312111907.31555-2-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 8894,
            "url": "http://patches.dpdk.org/api/series/8894/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8894",
            "date": "2020-03-12T11:18:56",
            "name": "net/octeontx2: add traffic manager support",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/8894/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/66576/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/66576/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A5BCFA056B;\n\tThu, 12 Mar 2020 12:19:28 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DDBA91C01F;\n\tThu, 12 Mar 2020 12:19:24 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 942291C01B\n for <dev@dpdk.org>; Thu, 12 Mar 2020 12:19:22 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 02CBFhrB017716 for <dev@dpdk.org>; Thu, 12 Mar 2020 04:19:22 -0700",
            "from sc-exch04.marvell.com ([199.233.58.184])\n by mx0b-0016f401.pphosted.com with ESMTP id 2yqfggs6dq-2\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 12 Mar 2020 04:19:21 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH04.marvell.com\n (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Thu, 12 Mar 2020 04:19:18 -0700",
            "from SC-EXCH04.marvell.com (10.93.176.84) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Thu, 12 Mar 2020 04:19:17 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH04.marvell.com\n (10.93.176.84) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Thu, 12 Mar 2020 04:19:17 -0700",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id E2BA13F704E;\n Thu, 12 Mar 2020 04:19:15 -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=pfpt0818; bh=6XXEZ0esLS/K476xp7K6jtQ8tg3ja9ps5nZw95L4+LE=;\n b=N37zXS6COg/9dI7S2USQRjkDR2F/A2UQcrNuccco6ai6XdbEHDGM9KleajjX/fQuLJP5\n O9oLpOii/Qum85x6yh5zpBgoKr+aOzMBOPMnnDlRf7TcLf4Jjzpktb9Ot8F9znMGVGUC\n XuJFVvCx5niYHb5ivNwV1nzjl6tkHvhgXk9a8Q2rR7Nbrq3e8mEkj+LNnQNSQXeGH21S\n AUeODbDxZqIJyqFscoVTYBRSTy10bNB/A50u6ZBPE2XsLnl6acjbi96zoPWN+NGlrsB/\n KqTrMMbXR+rAnqL3sCWqiOZyi+NSC720l6pG9UZ9gFQj8cFNd/Bgsp/PBtZNinMdOPHP +Q==",
        "From": "Nithin Dabilpuram <ndabilpuram@marvell.com>",
        "To": "Jerin Jacob <jerinj@marvell.com>, Nithin Dabilpuram\n <ndabilpuram@marvell.com>, Kiran Kumar K <kirankumark@marvell.com>",
        "CC": "Krzysztof Kanas <kkanas@marvell.com>, <dev@dpdk.org>",
        "Date": "Thu, 12 Mar 2020 16:48:57 +0530",
        "Message-ID": "<20200312111907.31555-2-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20200312111907.31555-1-ndabilpuram@marvell.com>",
        "References": "<20200312111907.31555-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572\n definitions=2020-03-12_03:2020-03-11,\n 2020-03-12 signatures=0",
        "Subject": "[dpdk-dev] [PATCH 01/11] net/octeontx2: setup link config based on\n\tBP level",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "Configure NIX_AF_TL3_TL2X_LINKX_CFG using schq at\nlevel based on NIX_AF_PSE_CHANNEL_LEVEL[BP_LEVEL].\n\nSigned-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\n---\n drivers/net/octeontx2/otx2_ethdev.h |  1 +\n drivers/net/octeontx2/otx2_tm.c     | 16 +++++++++++++++-\n 2 files changed, 16 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/net/octeontx2/otx2_ethdev.h b/drivers/net/octeontx2/otx2_ethdev.h\nindex e5684f9..b7d5386 100644\n--- a/drivers/net/octeontx2/otx2_ethdev.h\n+++ b/drivers/net/octeontx2/otx2_ethdev.h\n@@ -304,6 +304,7 @@ struct otx2_eth_dev {\n \t/* Contiguous queues */\n \tuint16_t txschq_contig_list[NIX_TXSCH_LVL_CNT][MAX_TXSCHQ_PER_FUNC];\n \tuint16_t otx2_tm_root_lvl;\n+\tuint16_t link_cfg_lvl;\n \tuint16_t tm_flags;\n \tuint16_t tm_leaf_cnt;\n \tstruct otx2_nix_tm_node_list node_list;\ndiff --git a/drivers/net/octeontx2/otx2_tm.c b/drivers/net/octeontx2/otx2_tm.c\nindex ba615ce..2364e03 100644\n--- a/drivers/net/octeontx2/otx2_tm.c\n+++ b/drivers/net/octeontx2/otx2_tm.c\n@@ -437,6 +437,16 @@ populate_tm_registers(struct otx2_eth_dev *dev,\n \t\t*reg++ = NIX_AF_TL3X_SCHEDULE(schq);\n \t\t*regval++ = (strict_schedul_prio << 24) | rr_quantum;\n \t\treq->num_regs++;\n+\n+\t\t/* Link configuration */\n+\t\tif (!otx2_dev_is_sdp(dev) &&\n+\t\t    dev->link_cfg_lvl == NIX_TXSCH_LVL_TL3) {\n+\t\t\t*reg++ = NIX_AF_TL3_TL2X_LINKX_CFG(schq,\n+\t\t\t\t\t\tnix_get_link(dev));\n+\t\t\t*regval++ = BIT_ULL(12) | nix_get_relchan(dev);\n+\t\t\treq->num_regs++;\n+\t\t}\n+\n \t\tif (pir.rate && pir.burst) {\n \t\t\t*reg++ = NIX_AF_TL3X_PIR(schq);\n \t\t\t*regval++ = shaper2regval(&pir) | 1;\n@@ -471,7 +481,10 @@ populate_tm_registers(struct otx2_eth_dev *dev,\n \t\telse\n \t\t\t*regval++ = (strict_schedul_prio << 24) | rr_quantum;\n \t\treq->num_regs++;\n-\t\tif (!otx2_dev_is_sdp(dev)) {\n+\n+\t\t/* Link configuration */\n+\t\tif (!otx2_dev_is_sdp(dev) &&\n+\t\t    dev->link_cfg_lvl == NIX_TXSCH_LVL_TL2) {\n \t\t\t*reg++ = NIX_AF_TL3_TL2X_LINKX_CFG(schq,\n \t\t\t\t\t\tnix_get_link(dev));\n \t\t\t*regval++ = BIT_ULL(12) | nix_get_relchan(dev);\n@@ -1144,6 +1157,7 @@ nix_tm_send_txsch_alloc_msg(struct otx2_eth_dev *dev)\n \t\treturn rc;\n \n \tnix_tm_copy_rsp_to_dev(dev, rsp);\n+\tdev->link_cfg_lvl = rsp->link_cfg_lvl;\n \n \tnix_tm_assign_hw_id(dev);\n \treturn 0;\n",
    "prefixes": [
        "01/11"
    ]
}