get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 110871,
    "url": "http://patches.dpdk.org/api/patches/110871/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220508074839.6965-1-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": "<20220508074839.6965-1-ndabilpuram@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220508074839.6965-1-ndabilpuram@marvell.com",
    "date": "2022-05-08T07:48:12",
    "name": "[v5,01/28] common/cnxk: add multi channel support for SDP send queues",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "1c8b0cc9010ef5eafc94078583e8df4e774ffa3e",
    "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/20220508074839.6965-1-ndabilpuram@marvell.com/mbox/",
    "series": [
        {
            "id": 22839,
            "url": "http://patches.dpdk.org/api/series/22839/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=22839",
            "date": "2022-05-08T07:48:12",
            "name": "[v5,01/28] common/cnxk: add multi channel support for SDP send queues",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/22839/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/110871/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/110871/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 E4D42A050C;\n\tSun,  8 May 2022 09:48:49 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 852BE4069D;\n\tSun,  8 May 2022 09:48:49 +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 9B3514068F\n for <dev@dpdk.org>; Sun,  8 May 2022 09:48:47 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 2485HOkf023889\n for <dev@dpdk.org>; Sun, 8 May 2022 00:48:46 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fwp4pt5yv-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Sun, 08 May 2022 00:48:46 -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 Sun, 8 May 2022 00:48:44 -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; Sun, 8 May 2022 00:48:44 -0700",
            "from hyd1588t430.marvell.com (unknown [10.29.52.204])\n by maili.marvell.com (Postfix) with ESMTP id 9DEAD3F7050;\n Sun,  8 May 2022 00:48:42 -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=kE6JEnj680iM9OvGDzUvTYKB58T9muhBFaGQJZOp1HE=;\n b=UDdX2nIZMLRhgHJy+q3YPwY46fnvB8/uls1w3GP1reHEncQYzCdlKPUJ+b4n6FWacfRL\n fddtwMXWwxywPkKzcNw+5SaLSsFpBYEtl2MVoDbbP/Gspa6s4ZE/BBIfWn0/Gd+cXmXq\n SbvInHzM2odt4ir+aYhgLWYXzHt6xm3MUn7zR6EiIDAPQjhOPp7d7HL48SSTFizqKnyK\n lcqFda3pj2B12NgPKc0yjIZ3z1EpWdNjzB18Y40876/UC97vlVnnTp9ZR0AviaL6lo+i\n ghc943+I0sjAmHSca582iW0Q3Q7NyfM1ym3QC9vahDa6Tf2meI2rhVhVVp+VZfP1y84O lQ==",
        "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>, Subrahmanyam Nilla <snilla@marvell.com>",
        "Subject": "[PATCH v5 01/28] common/cnxk: add multi channel support for SDP send\n queues",
        "Date": "Sun, 8 May 2022 13:18:12 +0530",
        "Message-ID": "<20220508074839.6965-1-ndabilpuram@marvell.com>",
        "X-Mailer": "git-send-email 2.8.4",
        "In-Reply-To": "<20220419055921.10566-1-ndabilpuram@marvell.com>",
        "References": "<20220419055921.10566-1-ndabilpuram@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "WVXM9N48YIubpPpCMJ4vcOZKY3_Okyyd",
        "X-Proofpoint-GUID": "WVXM9N48YIubpPpCMJ4vcOZKY3_Okyyd",
        "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-08_02,2022-05-06_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: Subrahmanyam Nilla <snilla@marvell.com>\n\nCurrently only base channel number is configured as default\nchannel for all the SDP send queues. Due to this, packets\nsent on different SQ's are landing on the same output queue\non the host. Channel number in the send queue should be\nconfigured according to the number of queues assigned to the\nSDP PF or VF device.\n\nSigned-off-by: Subrahmanyam Nilla <snilla@marvell.com>\n---\nv5:\n- Rebase and fix conflicts with dpdk-next-net-mrvl\nv4:\n- Fixed build failure on RHEL with patch 28/28\nv3:\n- Addressed comments from Jerin\n- Removed patch 26/28 and 27/28 due to functional issues\n- Added two more fixes.\nv2:\n- Fixed compilation issue with some compilers in patch 24/24\n- Added few more fixes net/cnxk and related code in common/cnxk\n\n drivers/common/cnxk/roc_nix_queue.c | 7 ++++++-\n 1 file changed, 6 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/common/cnxk/roc_nix_queue.c b/drivers/common/cnxk/roc_nix_queue.c\nindex 07dab4b..76c049c 100644\n--- a/drivers/common/cnxk/roc_nix_queue.c\n+++ b/drivers/common/cnxk/roc_nix_queue.c\n@@ -706,6 +706,7 @@ static int\n sq_cn9k_init(struct nix *nix, struct roc_nix_sq *sq, uint32_t rr_quantum,\n \t     uint16_t smq)\n {\n+\tstruct roc_nix *roc_nix = nix_priv_to_roc_nix(nix);\n \tstruct mbox *mbox = (&nix->dev)->mbox;\n \tstruct nix_aq_enq_req *aq;\n \n@@ -721,7 +722,11 @@ sq_cn9k_init(struct nix *nix, struct roc_nix_sq *sq, uint32_t rr_quantum,\n \taq->sq.max_sqe_size = sq->max_sqe_sz;\n \taq->sq.smq = smq;\n \taq->sq.smq_rr_quantum = rr_quantum;\n-\taq->sq.default_chan = nix->tx_chan_base;\n+\tif (roc_nix_is_sdp(roc_nix))\n+\t\taq->sq.default_chan =\n+\t\t\tnix->tx_chan_base + (sq->qid % nix->tx_chan_cnt);\n+\telse\n+\t\taq->sq.default_chan = nix->tx_chan_base;\n \taq->sq.sqe_stype = NIX_STYPE_STF;\n \taq->sq.ena = 1;\n \taq->sq.sso_ena = !!sq->sso_ena;\n",
    "prefixes": [
        "v5",
        "01/28"
    ]
}