get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55629,
    "url": "http://patches.dpdk.org/api/patches/55629/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190628182354.228-25-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": "<20190628182354.228-25-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190628182354.228-25-pbhagavatula@marvell.com",
    "date": "2019-06-28T18:23:35",
    "name": "[v3,24/42] event/octeontx2: add device stop and close functions",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "43b7aad23944319b3ebd2add432586e4616cdc5c",
    "submitter": {
        "id": 1183,
        "url": "http://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "http://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerin.jacob@caviumnetworks.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190628182354.228-25-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 5227,
            "url": "http://patches.dpdk.org/api/series/5227/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5227",
            "date": "2019-06-28T18:23:11",
            "name": "OCTEONTX2 event device driver",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/5227/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55629/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55629/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "X-BeenThere": "dev@dpdk.org",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "MIME-Version": "1.0",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-28_08:, , signatures=0",
        "In-Reply-To": "<20190628182354.228-1-pbhagavatula@marvell.com>",
        "Delivered-To": "patchwork@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "X-Mailer": "git-send-email 2.17.1",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n\th=from : to : cc :\n\tsubject : date : message-id : in-reply-to : references : mime-version\n\t: content-transfer-encoding : content-type; s=pfpt0818;\n\tbh=tJXtAnOee2rBnRH413mRu5F9Xg1NO0Bd5DdQs6GZstU=;\n\tb=MliKRVHIXUMwIKRPH44EnSl2rhue1PV6EkNsSFlws/vAMy7rIlOzl21g1v2uOpckRztz\n\tDPHvuCRlfXrFLzMWqJHGanRCn+5U4Or5eM/mcTy9SV/GbylOfp5DHEMtnVzV8Wde9pmV\n\t5fS1wgJJRvimLRe0mswuYn1xRcs+HgG+8jaIiVVmU7YMrwyoGoYKFOUI7SETFfxeQdp+\n\tjZ9anCrzp4ezYJD7KjQxAyXg6tE273BIFwexLqBUx/CF0+RZeIin72E+ngmoyWx4t0Mb\n\tHgzd5oFyGdr2J5JE3p+KJqC3sJtG0lSp3sCK2TTo6IXFNl8bWQLH/adxUbJBzIwscVWp\n\tew== ",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id AC0C91BA9F;\n\tFri, 28 Jun 2019 20:25:23 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n\t[67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 1F3B41B9DF\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 20:24:56 +0200 (CEST)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n\tby mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx5SIOlWl013964 for <dev@dpdk.org>; Fri, 28 Jun 2019 11:24:56 -0700",
            "from sc-exch03.marvell.com ([199.233.58.183])\n\tby mx0b-0016f401.pphosted.com with ESMTP id 2tdkg191jx-1\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 11:24:56 -0700",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tFri, 28 Jun 2019 11:24:53 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Fri, 28 Jun 2019 11:24:53 -0700",
            "from BG-LT7430.marvell.com (unknown [10.28.17.12])\n\tby maili.marvell.com (Postfix) with ESMTP id 9F7FA3F7040;\n\tFri, 28 Jun 2019 11:24:52 -0700 (PDT)"
        ],
        "X-Original-To": "patchwork@dpdk.org",
        "Content-Type": "text/plain",
        "Message-ID": "<20190628182354.228-25-pbhagavatula@marvell.com>",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Version": "2.1.15",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Errors-To": "dev-bounces@dpdk.org",
        "References": "<20190628182354.228-1-pbhagavatula@marvell.com>",
        "Subject": "[dpdk-dev] [PATCH v3 24/42] event/octeontx2: add device stop and\n\tclose functions",
        "Date": "Fri, 28 Jun 2019 23:53:35 +0530",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Precedence": "list"
    },
    "content": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nAdd event device stop and close callback functions.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n drivers/event/octeontx2/otx2_evdev.c | 39 ++++++++++++++++++++++++++++\n 1 file changed, 39 insertions(+)",
    "diff": "diff --git a/drivers/event/octeontx2/otx2_evdev.c b/drivers/event/octeontx2/otx2_evdev.c\nindex 786772ba9..5004fe2de 100644\n--- a/drivers/event/octeontx2/otx2_evdev.c\n+++ b/drivers/event/octeontx2/otx2_evdev.c\n@@ -1040,6 +1040,43 @@ otx2_sso_start(struct rte_eventdev *event_dev)\n \treturn 0;\n }\n \n+static void\n+otx2_sso_stop(struct rte_eventdev *event_dev)\n+{\n+\tsso_func_trace();\n+\tsso_cleanup(event_dev, 0);\n+\trte_mb();\n+}\n+\n+static int\n+otx2_sso_close(struct rte_eventdev *event_dev)\n+{\n+\tstruct otx2_sso_evdev *dev = sso_pmd_priv(event_dev);\n+\tuint8_t all_queues[RTE_EVENT_MAX_QUEUES_PER_DEV];\n+\tuint16_t i;\n+\n+\tif (!dev->configured)\n+\t\treturn 0;\n+\n+\tsso_unregister_irqs(event_dev);\n+\n+\tfor (i = 0; i < dev->nb_event_queues; i++)\n+\t\tall_queues[i] = i;\n+\n+\tfor (i = 0; i < dev->nb_event_ports; i++)\n+\t\totx2_sso_port_unlink(event_dev, event_dev->data->ports[i],\n+\t\t\t\t     all_queues, dev->nb_event_queues);\n+\n+\tsso_lf_teardown(dev, SSO_LF_GGRP);\n+\tsso_lf_teardown(dev, SSO_LF_GWS);\n+\tdev->nb_event_ports = 0;\n+\tdev->nb_event_queues = 0;\n+\trte_mempool_free(dev->xaq_pool);\n+\trte_memzone_free(rte_memzone_lookup(OTX2_SSO_FC_NAME));\n+\n+\treturn 0;\n+}\n+\n /* Initialize and register event driver with DPDK Application */\n static struct rte_eventdev_ops otx2_sso_ops = {\n \t.dev_infos_get    = otx2_sso_info_get,\n@@ -1060,6 +1097,8 @@ static struct rte_eventdev_ops otx2_sso_ops = {\n \n \t.dump             = otx2_sso_dump,\n \t.dev_start        = otx2_sso_start,\n+\t.dev_stop         = otx2_sso_stop,\n+\t.dev_close        = otx2_sso_close,\n };\n \n #define OTX2_SSO_XAE_CNT\t\"xae_cnt\"\n",
    "prefixes": [
        "v3",
        "24/42"
    ]
}