get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92644,
    "url": "http://patches.dpdk.org/api/patches/92644/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210503152238.2437-7-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-7-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210503152238.2437-7-pbhagavatula@marvell.com",
    "date": "2021-05-03T15:22:09",
    "name": "[v4,06/34] event/cnxk: add platform specific device config",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "89f5d9c23eb3aef36c2d06e5cd115539c5b173d7",
    "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-7-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/92644/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/92644/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 DDAD8A0562;\n\tMon,  3 May 2021 17:23:31 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DA881410F9;\n\tMon,  3 May 2021 17:23:09 +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 E33AC410EC\n for <dev@dpdk.org>; Mon,  3 May 2021 17:23:08 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 143FB50w032573 for <dev@dpdk.org>; Mon, 3 May 2021 08:23:08 -0700",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com with ESMTP id 38agtfguxy-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:08 -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.2;\n Mon, 3 May 2021 08:23:06 -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:06 -0700",
            "from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176])\n by maili.marvell.com (Postfix) with ESMTP id D03A13F703F;\n Mon,  3 May 2021 08:23:04 -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=UWqhpDk7eZ9D/eFaqHZKhebiRASFAXWqvRhbn402lVk=;\n b=V5HIPtJ2m1/F7cLf1B9v+wSnuiDHOs0r+llqiVujYcnQhD6RD0bmpqhkaF02CxzbLBMn\n QbTWNcwfS4XoYijbCePp2O7STXpl6MpAi+E8G409ROnoG8B2SlydcKkNsUp0LKbERZ0R\n KJXs/grAhDcuobDh926FjdfxfztQJnwfZzbjMMvWulVRp2rYXConC5PvYq7N60OCQL48\n YqCR1IbOzTW2um9TTOfz858KZzVpf8Vq/MGy3TKtQvvrtH61QFL/geOtNVS1esNk+QH3\n hnRD2S/PYKYSXxObH8M+yGYNrrPtFmtkuGAHCnVIKGmE6VjbdmY9g3nMtB49HD74WS9N wg==",
        "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:09 +0530",
        "Message-ID": "<20210503152238.2437-7-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": "ejF8ah2Pijw0pVL48J3dhGzT7oeQs4pe",
        "X-Proofpoint-ORIG-GUID": "ejF8ah2Pijw0pVL48J3dhGzT7oeQs4pe",
        "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 06/34] event/cnxk: add platform specific\n device config",
        "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 platform specific event device configuration that attaches the\nrequested number of SSO HWS(event ports) and HWGRP(event queues) LFs\nto the RVU PF/VF.\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 | 35 +++++++++++++++++++++++++++\n drivers/event/cnxk/cn9k_eventdev.c  | 37 +++++++++++++++++++++++++++++\n 2 files changed, 72 insertions(+)",
    "diff": "diff --git a/drivers/event/cnxk/cn10k_eventdev.c b/drivers/event/cnxk/cn10k_eventdev.c\nindex 1216acaad..779a2e026 100644\n--- a/drivers/event/cnxk/cn10k_eventdev.c\n+++ b/drivers/event/cnxk/cn10k_eventdev.c\n@@ -16,6 +16,14 @@ cn10k_sso_set_rsrc(void *arg)\n \t\t\t      dev->sso.max_hwgrp;\n }\n \n+static int\n+cn10k_sso_rsrc_init(void *arg, uint8_t hws, uint8_t hwgrp)\n+{\n+\tstruct cnxk_sso_evdev *dev = arg;\n+\n+\treturn roc_sso_rsrc_init(&dev->sso, hws, hwgrp);\n+}\n+\n static void\n cn10k_sso_info_get(struct rte_eventdev *event_dev,\n \t\t   struct rte_event_dev_info *dev_info)\n@@ -26,8 +34,35 @@ cn10k_sso_info_get(struct rte_eventdev *event_dev,\n \tcnxk_sso_info_get(dev, dev_info);\n }\n \n+static int\n+cn10k_sso_dev_configure(const struct rte_eventdev *event_dev)\n+{\n+\tstruct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev);\n+\tint rc;\n+\n+\trc = cnxk_sso_dev_validate(event_dev);\n+\tif (rc < 0) {\n+\t\tplt_err(\"Invalid event device configuration\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\troc_sso_rsrc_fini(&dev->sso);\n+\n+\trc = cn10k_sso_rsrc_init(dev, dev->nb_event_ports,\n+\t\t\t\t dev->nb_event_queues);\n+\tif (rc < 0) {\n+\t\tplt_err(\"Failed to initialize SSO resources\");\n+\t\treturn -ENODEV;\n+\t}\n+\n+\treturn rc;\n+}\n+\n 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.port_def_conf = cnxk_sso_port_def_conf,\n };\n \n static int\ndiff --git a/drivers/event/cnxk/cn9k_eventdev.c b/drivers/event/cnxk/cn9k_eventdev.c\nindex 988d2425f..d042f58da 100644\n--- a/drivers/event/cnxk/cn9k_eventdev.c\n+++ b/drivers/event/cnxk/cn9k_eventdev.c\n@@ -22,6 +22,17 @@ cn9k_sso_set_rsrc(void *arg)\n \t\t\t      dev->sso.max_hwgrp;\n }\n \n+static int\n+cn9k_sso_rsrc_init(void *arg, uint8_t hws, uint8_t hwgrp)\n+{\n+\tstruct cnxk_sso_evdev *dev = arg;\n+\n+\tif (dev->dual_ws)\n+\t\thws = hws * CN9K_DUAL_WS_NB_WS;\n+\n+\treturn roc_sso_rsrc_init(&dev->sso, hws, hwgrp);\n+}\n+\n static void\n cn9k_sso_info_get(struct rte_eventdev *event_dev,\n \t\t  struct rte_event_dev_info *dev_info)\n@@ -32,8 +43,34 @@ cn9k_sso_info_get(struct rte_eventdev *event_dev,\n \tcnxk_sso_info_get(dev, dev_info);\n }\n \n+static int\n+cn9k_sso_dev_configure(const struct rte_eventdev *event_dev)\n+{\n+\tstruct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev);\n+\tint rc;\n+\n+\trc = cnxk_sso_dev_validate(event_dev);\n+\tif (rc < 0) {\n+\t\tplt_err(\"Invalid event device configuration\");\n+\t\treturn -EINVAL;\n+\t}\n+\n+\troc_sso_rsrc_fini(&dev->sso);\n+\n+\trc = cn9k_sso_rsrc_init(dev, dev->nb_event_ports, dev->nb_event_queues);\n+\tif (rc < 0) {\n+\t\tplt_err(\"Failed to initialize SSO resources\");\n+\t\treturn -ENODEV;\n+\t}\n+\n+\treturn rc;\n+}\n+\n 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.port_def_conf = cnxk_sso_port_def_conf,\n };\n \n static int\n",
    "prefixes": [
        "v4",
        "06/34"
    ]
}