get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92645,
    "url": "http://patches.dpdk.org/api/patches/92645/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210503152238.2437-8-pbhagavatula@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": "<20210503152238.2437-8-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210503152238.2437-8-pbhagavatula@marvell.com",
    "date": "2021-05-03T15:22:10",
    "name": "[v4,07/34] event/cnxk: add event queue config functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "eee23cccc3e11036a91aa7f738d08de980d0ea6e",
    "submitter": {
        "id": 1183,
        "url": "http://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210503152238.2437-8-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 16799,
            "url": "http://patches.dpdk.org/api/series/16799/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16799",
            "date": "2021-05-03T15:22:03",
            "name": "Marvell CNXK Event device Driver",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/16799/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/92645/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/92645/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 9BB72A0562;\n\tMon,  3 May 2021 17:23:38 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 19DFE4114E;\n\tMon,  3 May 2021 17:23:14 +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 72A984114C\n for <dev@dpdk.org>; Mon,  3 May 2021 17:23:12 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 143FANOZ032590 for <dev@dpdk.org>; Mon, 3 May 2021 08:23:11 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 38ad05heeb-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 03 May 2021 08:23:11 -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.2;\n Mon, 3 May 2021 08:23: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.2 via Frontend\n Transport; Mon, 3 May 2021 08:23:10 -0700",
            "from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176])\n by maili.marvell.com (Postfix) with ESMTP id 2B6B13F703F;\n Mon,  3 May 2021 08:23:07 -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-transfer-encoding : content-type; s=pfpt0220;\n bh=4H3Ezz0pv06UMIJ3vTjZYB4amzmQZFPkqOobl/N+WPA=;\n b=T8jheF4dpI0Ei5I0QCvadMVuqhchnnbM3zG92t83Dd/CrtF+c8vR219RZk+3QszOJZKJ\n l73gbfs1ly72gfpw8uf5NBB+GhvwyMllquguVdh13lnAvPN+wTir6yXJ9u9dRSuUCaQg\n sOf7EMh2IfMuRGdmJJQLgwFQlYh5cprY/7PZm4VbsS30z5enps6JBsf9oRzeqTaohVAG\n ikav25kk29yrXF7A95pftwwc5aUH9OKvOVWpEPO/VOncbBxsHWaR7k0rXHHxBpt4AR+b\n vHXsV6X6j5p2DyS2bdkfbryGrM+40ALRJr72QIa2Sb65t35JpP8HPtEwTfHFt27VMzdz tg==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>, \"Shijith\n Thotton\" <sthotton@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "Date": "Mon, 3 May 2021 20:52:10 +0530",
        "Message-ID": "<20210503152238.2437-8-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20210503152238.2437-1-pbhagavatula@marvell.com>",
        "References": "<20210430135336.2749-1-pbhagavatula@marvell.com>\n <20210503152238.2437-1-pbhagavatula@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "kP5QbzdJJPZgCImKxax5CpfixoIr91xb",
        "X-Proofpoint-ORIG-GUID": "kP5QbzdJJPZgCImKxax5CpfixoIr91xb",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761\n definitions=2021-05-03_10:2021-05-03,\n 2021-05-03 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v4 07/34] event/cnxk: add event queue config\n functions",
        "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": "From: Shijith Thotton <sthotton@marvell.com>\n\nAdd setup and release functions for event queues i.e.\nSSO HWGRPs.\n\nSigned-off-by: Shijith Thotton <sthotton@marvell.com>\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n drivers/event/cnxk/cn10k_eventdev.c |  2 ++\n drivers/event/cnxk/cn9k_eventdev.c  |  2 ++\n drivers/event/cnxk/cnxk_eventdev.c  | 19 +++++++++++++++++++\n drivers/event/cnxk/cnxk_eventdev.h  |  3 +++\n 4 files changed, 26 insertions(+)",
    "diff": "diff --git a/drivers/event/cnxk/cn10k_eventdev.c b/drivers/event/cnxk/cn10k_eventdev.c\nindex 779a2e026..557f26b8f 100644\n--- a/drivers/event/cnxk/cn10k_eventdev.c\n+++ b/drivers/event/cnxk/cn10k_eventdev.c\n@@ -62,6 +62,8 @@ static struct rte_eventdev_ops cn10k_sso_dev_ops = {\n \t.dev_infos_get = cn10k_sso_info_get,\n \t.dev_configure = cn10k_sso_dev_configure,\n \t.queue_def_conf = cnxk_sso_queue_def_conf,\n+\t.queue_setup = cnxk_sso_queue_setup,\n+\t.queue_release = cnxk_sso_queue_release,\n \t.port_def_conf = cnxk_sso_port_def_conf,\n };\n \ndiff --git a/drivers/event/cnxk/cn9k_eventdev.c b/drivers/event/cnxk/cn9k_eventdev.c\nindex d042f58da..eba1bfbf0 100644\n--- a/drivers/event/cnxk/cn9k_eventdev.c\n+++ b/drivers/event/cnxk/cn9k_eventdev.c\n@@ -70,6 +70,8 @@ static struct rte_eventdev_ops cn9k_sso_dev_ops = {\n \t.dev_infos_get = cn9k_sso_info_get,\n \t.dev_configure = cn9k_sso_dev_configure,\n \t.queue_def_conf = cnxk_sso_queue_def_conf,\n+\t.queue_setup = cnxk_sso_queue_setup,\n+\t.queue_release = cnxk_sso_queue_release,\n \t.port_def_conf = cnxk_sso_port_def_conf,\n };\n \ndiff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c\nindex 3eab1ed29..e22479a19 100644\n--- a/drivers/event/cnxk/cnxk_eventdev.c\n+++ b/drivers/event/cnxk/cnxk_eventdev.c\n@@ -86,6 +86,25 @@ cnxk_sso_queue_def_conf(struct rte_eventdev *event_dev, uint8_t queue_id,\n \tqueue_conf->priority = RTE_EVENT_DEV_PRIORITY_NORMAL;\n }\n \n+int\n+cnxk_sso_queue_setup(struct rte_eventdev *event_dev, uint8_t queue_id,\n+\t\t     const struct rte_event_queue_conf *queue_conf)\n+{\n+\tstruct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev);\n+\n+\tplt_sso_dbg(\"Queue=%d prio=%d\", queue_id, queue_conf->priority);\n+\t/* Normalize <0-255> to <0-7> */\n+\treturn roc_sso_hwgrp_set_priority(&dev->sso, queue_id, 0xFF, 0xFF,\n+\t\t\t\t\t  queue_conf->priority / 32);\n+}\n+\n+void\n+cnxk_sso_queue_release(struct rte_eventdev *event_dev, uint8_t queue_id)\n+{\n+\tRTE_SET_USED(event_dev);\n+\tRTE_SET_USED(queue_id);\n+}\n+\n void\n cnxk_sso_port_def_conf(struct rte_eventdev *event_dev, uint8_t port_id,\n \t\t       struct rte_event_port_conf *port_conf)\ndiff --git a/drivers/event/cnxk/cnxk_eventdev.h b/drivers/event/cnxk/cnxk_eventdev.h\nindex 59d96a08f..426219c85 100644\n--- a/drivers/event/cnxk/cnxk_eventdev.h\n+++ b/drivers/event/cnxk/cnxk_eventdev.h\n@@ -45,6 +45,9 @@ void cnxk_sso_info_get(struct cnxk_sso_evdev *dev,\n int cnxk_sso_dev_validate(const struct rte_eventdev *event_dev);\n void cnxk_sso_queue_def_conf(struct rte_eventdev *event_dev, uint8_t queue_id,\n \t\t\t     struct rte_event_queue_conf *queue_conf);\n+int cnxk_sso_queue_setup(struct rte_eventdev *event_dev, uint8_t queue_id,\n+\t\t\t const struct rte_event_queue_conf *queue_conf);\n+void cnxk_sso_queue_release(struct rte_eventdev *event_dev, uint8_t queue_id);\n void cnxk_sso_port_def_conf(struct rte_eventdev *event_dev, uint8_t port_id,\n \t\t\t    struct rte_event_port_conf *port_conf);\n \n",
    "prefixes": [
        "v4",
        "07/34"
    ]
}