get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55645,
    "url": "http://patches.dpdk.org/api/patches/55645/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190628182354.228-41-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-41-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190628182354.228-41-pbhagavatula@marvell.com",
    "date": "2019-06-28T18:23:51",
    "name": "[v3,40/42] event/octeontx2: add even timer adapter start and stop",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0661982658d2854c4c7beeeee2acb5f38e556d1d",
    "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": "jerinj@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190628182354.228-41-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/55645/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55645/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id CD9C71BBD8;\n\tFri, 28 Jun 2019 20:25:52 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n\t[67.231.148.174]) by dpdk.org (Postfix) with ESMTP id BD3201BB27\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 20:25:34 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n\tby mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id\n\tx5SILhn7011549 for <dev@dpdk.org>; Fri, 28 Jun 2019 11:25:34 -0700",
            "from sc-exch03.marvell.com ([199.233.58.183])\n\tby mx0a-0016f401.pphosted.com with ESMTP id 2tdd77agr7-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:25:33 -0700",
            "from SC-EXCH03.marvell.com (10.93.176.83) 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:25:32 -0700",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH03.marvell.com\n\t(10.93.176.83) with Microsoft SMTP Server id 15.0.1367.3 via Frontend\n\tTransport; Fri, 28 Jun 2019 11:25:32 -0700",
            "from BG-LT7430.marvell.com (unknown [10.28.17.12])\n\tby maili.marvell.com (Postfix) with ESMTP id 5E0293F7040;\n\tFri, 28 Jun 2019 11:25:31 -0700 (PDT)"
        ],
        "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=J1khgfkhzS5zaSR9xLKFOQQdcCQrnFowhMLxnwCHOm4=;\n\tb=CEu0umWymhS8F1EI3wUIYkvLSve13xUpmT19NYpS6OgHvTgYzNzeOqY+dldanl0A0dp9\n\tsjrxpkpVc4c8EX+Xi9gx93uY968g5ld25FX451zAnW/eRhPPodVW8BwkWCE2n0FTBFCY\n\tcFLamZEKXGJPmNgtS+qp+DGS3RAkZBmj+J28G3mnla+dFaDN+IubDtb8D+iLNejOMitE\n\tFjyNuXILYHVfWZyz+VezvDUbnrVujuQy4U4Y8P7RaET9iobUZGalPLA60aob7Cc7dzQx\n\tPrt1e532aWUXK577Dt7vpg3VuecuOnHVxJ/smYzyYKPo68PfPkZchQ+rMb6daYzmQVFD\n\ttw== ",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "Date": "Fri, 28 Jun 2019 23:53:51 +0530",
        "Message-ID": "<20190628182354.228-41-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20190628182354.228-1-pbhagavatula@marvell.com>",
        "References": "<20190628182354.228-1-pbhagavatula@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:, ,\n\tdefinitions=2019-06-28_08:, , signatures=0",
        "Subject": "[dpdk-dev] [PATCH v3 40/42] event/octeontx2: add even timer adapter\n\tstart and stop",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nAdd event timer adapter start and stop functions.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n drivers/event/octeontx2/otx2_tim_evdev.c | 66 ++++++++++++++++++++++++\n 1 file changed, 66 insertions(+)",
    "diff": "diff --git a/drivers/event/octeontx2/otx2_tim_evdev.c b/drivers/event/octeontx2/otx2_tim_evdev.c\nindex af68254f5..cd9a679fb 100644\n--- a/drivers/event/octeontx2/otx2_tim_evdev.c\n+++ b/drivers/event/octeontx2/otx2_tim_evdev.c\n@@ -377,6 +377,69 @@ otx2_tim_ring_create(struct rte_event_timer_adapter *adptr)\n \treturn rc;\n }\n \n+static int\n+otx2_tim_ring_start(const struct rte_event_timer_adapter *adptr)\n+{\n+\tstruct otx2_tim_ring *tim_ring = adptr->data->adapter_priv;\n+\tstruct otx2_tim_evdev *dev = tim_priv_get();\n+\tstruct tim_enable_rsp *rsp;\n+\tstruct tim_ring_req *req;\n+\tint rc;\n+\n+\tif (dev == NULL)\n+\t\treturn -ENODEV;\n+\n+\treq = otx2_mbox_alloc_msg_tim_enable_ring(dev->mbox);\n+\treq->ring = tim_ring->ring_id;\n+\n+\trc = otx2_mbox_process_msg(dev->mbox, (void **)&rsp);\n+\tif (rc < 0) {\n+\t\ttim_err_desc(rc);\n+\t\tgoto fail;\n+\t}\n+#ifdef RTE_ARM_EAL_RDTSC_USE_PMU\n+\tuint64_t tenns_stmp, tenns_diff;\n+\tuint64_t pmu_stmp;\n+\n+\tpmu_stmp = rte_rdtsc();\n+\tasm volatile(\"mrs %0, cntvct_el0\" : \"=r\" (tenns_stmp));\n+\n+\ttenns_diff = tenns_stmp - rsp->timestarted;\n+\tpmu_stmp = pmu_stmp - (NSEC2TICK(tenns_diff  * 10, rte_get_timer_hz()));\n+\ttim_ring->ring_start_cyc = pmu_stmp;\n+#else\n+\ttim_ring->ring_start_cyc = rsp->timestarted;\n+#endif\n+\ttim_ring->tck_int = NSEC2TICK(tim_ring->tck_nsec, rte_get_timer_hz());\n+\ttim_ring->fast_div = rte_reciprocal_value_u64(tim_ring->tck_int);\n+\n+fail:\n+\treturn rc;\n+}\n+\n+static int\n+otx2_tim_ring_stop(const struct rte_event_timer_adapter *adptr)\n+{\n+\tstruct otx2_tim_ring *tim_ring = adptr->data->adapter_priv;\n+\tstruct otx2_tim_evdev *dev = tim_priv_get();\n+\tstruct tim_ring_req *req;\n+\tint rc;\n+\n+\tif (dev == NULL)\n+\t\treturn -ENODEV;\n+\n+\treq = otx2_mbox_alloc_msg_tim_disable_ring(dev->mbox);\n+\treq->ring = tim_ring->ring_id;\n+\n+\trc = otx2_mbox_process(dev->mbox);\n+\tif (rc < 0) {\n+\t\ttim_err_desc(rc);\n+\t\trc = -EBUSY;\n+\t}\n+\n+\treturn rc;\n+}\n+\n static int\n otx2_tim_ring_free(struct rte_event_timer_adapter *adptr)\n {\n@@ -438,11 +501,14 @@ otx2_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags,\n \tstruct otx2_tim_evdev *dev = tim_priv_get();\n \n \tRTE_SET_USED(flags);\n+\n \tif (dev == NULL)\n \t\treturn -ENODEV;\n \n \totx2_tim_ops.init = otx2_tim_ring_create;\n \totx2_tim_ops.uninit = otx2_tim_ring_free;\n+\totx2_tim_ops.start = otx2_tim_ring_start;\n+\totx2_tim_ops.stop = otx2_tim_ring_stop;\n \totx2_tim_ops.get_info\t= otx2_tim_ring_info_get;\n \n \tif (dev->enable_stats) {\n",
    "prefixes": [
        "v3",
        "40/42"
    ]
}