get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55632,
    "url": "http://patches.dpdk.org/api/patches/55632/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190628182354.228-28-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-28-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190628182354.228-28-pbhagavatula@marvell.com",
    "date": "2019-06-28T18:23:38",
    "name": "[v3,27/42] event/octeontx2: add timer adapter capabilities",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "8cf8e3234cff269fccf1da55c6104f383cdfdf48",
    "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-28-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/55632/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/55632/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 5D5C41BAE5;\n\tFri, 28 Jun 2019 20:25:29 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n\t[67.231.148.174]) by dpdk.org (Postfix) with ESMTP id D72D34C99\n\tfor <dev@dpdk.org>; Fri, 28 Jun 2019 20:25:03 +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\tx5SIL8JS011336 for <dev@dpdk.org>; Fri, 28 Jun 2019 11:25:03 -0700",
            "from sc-exch01.marvell.com ([199.233.58.181])\n\tby mx0a-0016f401.pphosted.com with ESMTP id 2tdd77agp5-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:03 -0700",
            "from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com\n\t(10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3;\n\tFri, 28 Jun 2019 11:25:01 -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:01 -0700",
            "from BG-LT7430.marvell.com (unknown [10.28.17.12])\n\tby maili.marvell.com (Postfix) with ESMTP id 8B5943F7040;\n\tFri, 28 Jun 2019 11:25:00 -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=epZLLHyNB62e1TNV/p0DVwskkSUYYhHCw0/vDFrfnvY=;\n\tb=qzIkbIuvdnWna1/gZ/ZR/H27cMsdVjzoJo40fnkdCXJGAz4QeCGH3jUjKdmpmjFM6O1H\n\t/6ZzE9KU6GnI/3mA/kguBmq9TorBomH5sPRFcL4w/NIXdCz1kF8mzumZVyqrUHOp0n0A\n\tbAyJ7txt3Bx62N7P10wUjtIPKA3Rcayg9bgUQTlleezlhan3czFNrrFOq312BqvM/nwf\n\tdWiOfVVXeTSbNibwh1YXrKNr73i0+OKLIu5Gy5Pc0XCaLaTQllGxTd/Hs/RI8jqhcdsf\n\tPIHXxeIc8Qax4w5jIWyhuBufdMkrAQfQ5OsQfisPHMH1vjCwIIgZERz15yb3HknMoigx\n\tJQ== ",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "Date": "Fri, 28 Jun 2019 23:53:38 +0530",
        "Message-ID": "<20190628182354.228-28-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 27/42] event/octeontx2: add timer adapter\n\tcapabilities",
        "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 function to retrieve event timer adapter capabilities.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n drivers/event/octeontx2/otx2_evdev.c     |  2 ++\n drivers/event/octeontx2/otx2_tim_evdev.c | 19 +++++++++++++++++++\n drivers/event/octeontx2/otx2_tim_evdev.h |  5 +++++\n 3 files changed, 26 insertions(+)",
    "diff": "diff --git a/drivers/event/octeontx2/otx2_evdev.c b/drivers/event/octeontx2/otx2_evdev.c\nindex a716167b3..a1222b3cf 100644\n--- a/drivers/event/octeontx2/otx2_evdev.c\n+++ b/drivers/event/octeontx2/otx2_evdev.c\n@@ -1092,6 +1092,8 @@ static struct rte_eventdev_ops otx2_sso_ops = {\n \t.port_unlink      = otx2_sso_port_unlink,\n \t.timeout_ticks    = otx2_sso_timeout_ticks,\n \n+\t.timer_adapter_caps_get = otx2_tim_caps_get,\n+\n \t.xstats_get       = otx2_sso_xstats_get,\n \t.xstats_reset     = otx2_sso_xstats_reset,\n \t.xstats_get_names = otx2_sso_xstats_get_names,\ndiff --git a/drivers/event/octeontx2/otx2_tim_evdev.c b/drivers/event/octeontx2/otx2_tim_evdev.c\nindex 004701f64..0f20c163b 100644\n--- a/drivers/event/octeontx2/otx2_tim_evdev.c\n+++ b/drivers/event/octeontx2/otx2_tim_evdev.c\n@@ -5,6 +5,25 @@\n #include \"otx2_evdev.h\"\n #include \"otx2_tim_evdev.h\"\n \n+int\n+otx2_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags,\n+\t\t  uint32_t *caps,\n+\t\t  const struct rte_event_timer_adapter_ops **ops)\n+{\n+\tstruct otx2_tim_evdev *dev = tim_priv_get();\n+\n+\tRTE_SET_USED(flags);\n+\tRTE_SET_USED(ops);\n+\tif (dev == NULL)\n+\t\treturn -ENODEV;\n+\n+\t/* Store evdev pointer for later use. */\n+\tdev->event_dev = (struct rte_eventdev *)(uintptr_t)evdev;\n+\t*caps = RTE_EVENT_TIMER_ADAPTER_CAP_INTERNAL_PORT;\n+\n+\treturn 0;\n+}\n+\n void\n otx2_tim_init(struct rte_pci_device *pci_dev, struct otx2_dev *cmn_dev)\n {\ndiff --git a/drivers/event/octeontx2/otx2_tim_evdev.h b/drivers/event/octeontx2/otx2_tim_evdev.h\nindex 9f7aeb7df..e94c61b1a 100644\n--- a/drivers/event/octeontx2/otx2_tim_evdev.h\n+++ b/drivers/event/octeontx2/otx2_tim_evdev.h\n@@ -13,6 +13,7 @@\n \n struct otx2_tim_evdev {\n \tstruct rte_pci_device *pci_dev;\n+\tstruct rte_eventdev *event_dev;\n \tstruct otx2_mbox *mbox;\n \tuint16_t nb_rings;\n \tuintptr_t bar2;\n@@ -30,6 +31,10 @@ tim_priv_get(void)\n \treturn mz->addr;\n }\n \n+int otx2_tim_caps_get(const struct rte_eventdev *dev, uint64_t flags,\n+\t\t      uint32_t *caps,\n+\t\t      const struct rte_event_timer_adapter_ops **ops);\n+\n void otx2_tim_init(struct rte_pci_device *pci_dev, struct otx2_dev *cmn_dev);\n void otx2_tim_fini(void);\n \n",
    "prefixes": [
        "v3",
        "27/42"
    ]
}