get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92641,
    "url": "http://patches.dpdk.org/api/patches/92641/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210503152238.2437-4-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-4-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210503152238.2437-4-pbhagavatula@marvell.com",
    "date": "2021-05-03T15:22:06",
    "name": "[v4,03/34] event/cnxk: add device capabilities function",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "15d7653b0f62cafeb283d116c2c2dcd5f04d4767",
    "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-4-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/92641/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/92641/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 6ECBFA0562;\n\tMon,  3 May 2021 17:23:09 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C947F41110;\n\tMon,  3 May 2021 17:23:00 +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 A64194068C\n for <dev@dpdk.org>; Mon,  3 May 2021 17:22:58 +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 143FA9xS032496 for <dev@dpdk.org>; Mon, 3 May 2021 08:22:58 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 38ad05hedd-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 03 May 2021 08:22:58 -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:22:56 -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:22:56 -0700",
            "from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176])\n by maili.marvell.com (Postfix) with ESMTP id 69AA73F703F;\n Mon,  3 May 2021 08:22:54 -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=2ECxKpzhMfJGae+BunAv7D5vYFYHGE53+esIFAKQnv4=;\n b=c1oZjGqcQ2GiPHz6XDdh0LfI0SjIeA2mswTm+rKnvHCt8QPENwD7GqZ0ExQqmfZY9B7F\n RYidG2AQI4iJG9hiM9piHgegL0se/GB9vni4fhDo5YEwZlq5mck9g4s5o8SI4KK+hsjG\n 7MHKnd7yyG3jATOtNViBcdpptvK1UlVnEErtuvUYgkLR6/j0KfAiUh0MCAcjPr9IWDLB\n np0WdXcpER6a0IeBNepjT387Rdw++V0wf1v6iRVEBZsQCh62adC0GpN055vz53MwjnMp\n myKzWnhze9Zqsl2n+fY9QcWRKH1gOxjO9v4Cqy96vNxs5kIkB6+kBLg4Lxcy6VmJh16Y uA==",
        "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:06 +0530",
        "Message-ID": "<20210503152238.2437-4-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": "cT1ysu0kiYkXJJC5rzDbjkUXLA8wvkyM",
        "X-Proofpoint-ORIG-GUID": "cT1ysu0kiYkXJJC5rzDbjkUXLA8wvkyM",
        "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 03/34] event/cnxk: add device capabilities\n function",
        "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 the info_get function to return details on the queues, flow,\nprioritization capabilities, etc. which this device has.\n\nSigned-off-by: Shijith Thotton <sthotton@marvell.com>\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n drivers/event/cnxk/cnxk_eventdev.c | 24 ++++++++++++++++++++++++\n drivers/event/cnxk/cnxk_eventdev.h |  4 ++++\n 2 files changed, 28 insertions(+)",
    "diff": "diff --git a/drivers/event/cnxk/cnxk_eventdev.c b/drivers/event/cnxk/cnxk_eventdev.c\nindex 7ea782eaa..3a7053af6 100644\n--- a/drivers/event/cnxk/cnxk_eventdev.c\n+++ b/drivers/event/cnxk/cnxk_eventdev.c\n@@ -4,6 +4,30 @@\n \n #include \"cnxk_eventdev.h\"\n \n+void\n+cnxk_sso_info_get(struct cnxk_sso_evdev *dev,\n+\t\t  struct rte_event_dev_info *dev_info)\n+{\n+\n+\tdev_info->min_dequeue_timeout_ns = dev->min_dequeue_timeout_ns;\n+\tdev_info->max_dequeue_timeout_ns = dev->max_dequeue_timeout_ns;\n+\tdev_info->max_event_queues = dev->max_event_queues;\n+\tdev_info->max_event_queue_flows = (1ULL << 20);\n+\tdev_info->max_event_queue_priority_levels = 8;\n+\tdev_info->max_event_priority_levels = 1;\n+\tdev_info->max_event_ports = dev->max_event_ports;\n+\tdev_info->max_event_port_dequeue_depth = 1;\n+\tdev_info->max_event_port_enqueue_depth = 1;\n+\tdev_info->max_num_events = dev->max_num_events;\n+\tdev_info->event_dev_cap = RTE_EVENT_DEV_CAP_QUEUE_QOS |\n+\t\t\t\t  RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED |\n+\t\t\t\t  RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES |\n+\t\t\t\t  RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK |\n+\t\t\t\t  RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT |\n+\t\t\t\t  RTE_EVENT_DEV_CAP_NONSEQ_MODE |\n+\t\t\t\t  RTE_EVENT_DEV_CAP_CARRY_FLOW_ID;\n+}\n+\n int\n cnxk_sso_init(struct rte_eventdev *event_dev)\n {\ndiff --git a/drivers/event/cnxk/cnxk_eventdev.h b/drivers/event/cnxk/cnxk_eventdev.h\nindex 74d0990fa..9745bfd3e 100644\n--- a/drivers/event/cnxk/cnxk_eventdev.h\n+++ b/drivers/event/cnxk/cnxk_eventdev.h\n@@ -17,6 +17,8 @@\n \n struct cnxk_sso_evdev {\n \tstruct roc_sso sso;\n+\tuint8_t max_event_queues;\n+\tuint8_t max_event_ports;\n \tuint8_t is_timeout_deq;\n \tuint8_t nb_event_queues;\n \tuint8_t nb_event_ports;\n@@ -35,5 +37,7 @@ cnxk_sso_pmd_priv(const struct rte_eventdev *event_dev)\n int cnxk_sso_init(struct rte_eventdev *event_dev);\n int cnxk_sso_fini(struct rte_eventdev *event_dev);\n int cnxk_sso_remove(struct rte_pci_device *pci_dev);\n+void cnxk_sso_info_get(struct cnxk_sso_evdev *dev,\n+\t\t       struct rte_event_dev_info *dev_info);\n \n #endif /* __CNXK_EVENTDEV_H__ */\n",
    "prefixes": [
        "v4",
        "03/34"
    ]
}