get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 125894,
    "url": "https://patches.dpdk.org/api/patches/125894/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230411070129.870-1-pbhagavatula@marvell.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20230411070129.870-1-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230411070129.870-1-pbhagavatula@marvell.com",
    "date": "2023-04-11T07:01:28",
    "name": "[1/2] net/cnxk: optimize flow control hysteresis",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7999a89bf652006ce52d27c13a16c65498f0ab3e",
    "submitter": {
        "id": 1183,
        "url": "https://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230411070129.870-1-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 27655,
            "url": "https://patches.dpdk.org/api/series/27655/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=27655",
            "date": "2023-04-11T07:01:28",
            "name": "[1/2] net/cnxk: optimize flow control hysteresis",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/27655/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/125894/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/125894/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 5B2CE42919;\n\tTue, 11 Apr 2023 09:01:40 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D616540DFD;\n\tTue, 11 Apr 2023 09:01:39 +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 6E20440A8B\n for <dev@dpdk.org>; Tue, 11 Apr 2023 09:01:38 +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 33ALExMj020822 for <dev@dpdk.org>; Tue, 11 Apr 2023 00:01:37 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3pvt73abss-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 11 Apr 2023 00:01:36 -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.48;\n Tue, 11 Apr 2023 00:01:35 -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; Tue, 11 Apr 2023 00:01:35 -0700",
            "from MININT-80QBFE8.corp.innovium.com (unknown [10.28.164.122])\n by maili.marvell.com (Postfix) with ESMTP id 636903F7050;\n Tue, 11 Apr 2023 00:01:32 -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=yRfCxH+lxXhUE/Bww+A5PAr02kux8G4Cc4v5Pg1mhNg=;\n b=CCBCwl0xgKzIWNd5/Iv/ul7ClPtjvQTUB7KbioGbMguHvPdVme3iRtcHnbV/I+vFyTFG\n i4mvNq4H3DNY1rhKc0WoHeAwPtzRzMDFfHqRuujOmVOIw0COUoTSmTUJdj66Y1g3lBfj\n azPDsrORMBmry+Kjd6b36InkdORS3T72MQrxo1bF3x0FCIoTGZWbmmTD5VlpYphpDYgv\n pAcZ7qtPZ9d6Aso79AoNH0SbzEIqX0f5pHgDZEzja5GfJe8hHao0V7zI2Iko0+OvTNGn\n IL0ICzJ9+1ePqMPwND8HxmuIzYQI2C+wt7MQbiBdanzM3GZl+7/JwfRX8ToCWFN9W0io Dg==",
        "From": "<pbhagavatula@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>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "Subject": "[PATCH 1/2] net/cnxk: optimize flow control hysteresis",
        "Date": "Tue, 11 Apr 2023 12:31:28 +0530",
        "Message-ID": "<20230411070129.870-1-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "7mpNy6dmKl9ilcctPxoJnK6JK3-bjiSV",
        "X-Proofpoint-ORIG-GUID": "7mpNy6dmKl9ilcctPxoJnK6JK3-bjiSV",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22\n definitions=2023-04-11_04,2023-04-06_03,2023-02-09_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: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nSet flow control hysteresis to ignore immediate sequence of\ndecrement-increment to avoid unnecessary LLC traffic.\nEnable hysteresis when SQ length is more than 512 as it lower\nqueue lengths will require faster updates.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\nSigned-off-by: Satha Rao <skoteshwar@marvell.com>\n---\n drivers/net/cnxk/cnxk_ethdev.c | 2 ++\n drivers/net/cnxk/cnxk_ethdev.h | 2 ++\n 2 files changed, 4 insertions(+)",
    "diff": "diff --git a/drivers/net/cnxk/cnxk_ethdev.c b/drivers/net/cnxk/cnxk_ethdev.c\nindex 1cae3084e1..42a52ed0ca 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.c\n+++ b/drivers/net/cnxk/cnxk_ethdev.c\n@@ -487,6 +487,8 @@ cnxk_nix_tx_queue_setup(struct rte_eth_dev *eth_dev, uint16_t qid,\n \tsq->qid = qid;\n \tsq->nb_desc = nb_desc;\n \tsq->max_sqe_sz = nix_sq_max_sqe_sz(dev);\n+\tif (sq->nb_desc >= CNXK_NIX_DEF_SQ_COUNT)\n+\t\tsq->fc_hyst_bits = 0x1;\n \n \tif (nix->tx_compl_ena) {\n \t\tsq->cqid = sq->qid + dev->nb_rxq;\ndiff --git a/drivers/net/cnxk/cnxk_ethdev.h b/drivers/net/cnxk/cnxk_ethdev.h\nindex 62a06e5d03..97537de17a 100644\n--- a/drivers/net/cnxk/cnxk_ethdev.h\n+++ b/drivers/net/cnxk/cnxk_ethdev.h\n@@ -49,6 +49,8 @@\n /* LPB & SPB */\n #define CNXK_NIX_NUM_POOLS_MAX 2\n \n+#define CNXK_NIX_DEF_SQ_COUNT\t512\n+\n #define CNXK_NIX_RSS_L3_L4_SRC_DST                                             \\\n \t(RTE_ETH_RSS_L3_SRC_ONLY | RTE_ETH_RSS_L3_DST_ONLY |                   \\\n \t RTE_ETH_RSS_L4_SRC_ONLY | RTE_ETH_RSS_L4_DST_ONLY)\n",
    "prefixes": [
        "1/2"
    ]
}