get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100572,
    "url": "http://patches.dpdk.org/api/patches/100572/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20211006065012.16508-11-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": "<20211006065012.16508-11-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20211006065012.16508-11-pbhagavatula@marvell.com",
    "date": "2021-10-06T06:50:08",
    "name": "[v3,11/14] eventdev: move timer adapters memory to hugepage",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3affe198c9e4c3d8fe420a4d86ffe512158bca8a",
    "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/20211006065012.16508-11-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 19405,
            "url": "http://patches.dpdk.org/api/series/19405/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19405",
            "date": "2021-10-06T06:49:58",
            "name": "[v3,01/14] eventdev: make driver interface as internal",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/19405/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/100572/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/100572/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 83A9EA0C45;\n\tWed,  6 Oct 2021 08:52:09 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C27FA4144C;\n\tWed,  6 Oct 2021 08:51:28 +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 B6D954144C\n for <dev@dpdk.org>; Wed,  6 Oct 2021 08:51:26 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id\n 195MBF31012691;\n Tue, 5 Oct 2021 23:51:25 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com with ESMTP id 3bgy9d1mdq-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 05 Oct 2021 23:51:25 -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.18;\n Tue, 5 Oct 2021 23:51:24 -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.18 via Frontend\n Transport; Tue, 5 Oct 2021 23:51:24 -0700",
            "from BG-LT7430.marvell.com (BG-LT7430.marvell.com [10.28.177.176])\n by maili.marvell.com (Postfix) with ESMTP id D56293F704C;\n Tue,  5 Oct 2021 23:51:22 -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=Y7kOAu1iWmS8NMiorS92j/zF65j91rw8ROgcchunmcE=;\n b=AoRp64t7CPAdsbW/hmaVzuhyWZonwoNusOPDqpPrc4miBniyvht0kr7HHaioIIgDJZey\n R45ZKEST1IIfguZ9KVzWahBQRAlEJ7WP2EisNDTXbzJcyf4/l8omK3y2YxieBUoIStek\n 2c74BZQe4rjzFX6Mj8ziVJMPyPu8ZwdEVSzF3hVYIkaxi9D5O4CJtowtHelkwq/cJKZN\n 0oHGudbaRKjMXi//DsDzizYBILUEL9qW5Iy80eyqhkDUdHzPxn0/cABxgffCHNgQXb9k\n Dk2OemlMFQC4jryZ2liaoLP2AUf0a3GPxFth+4I2H7rJWlxZWlGDKgFLw99aM6BkcY7P Sw==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, Erik Gabriel Carrillo <erik.g.carrillo@intel.com>",
        "CC": "<dev@dpdk.org>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "Date": "Wed, 6 Oct 2021 12:20:08 +0530",
        "Message-ID": "<20211006065012.16508-11-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20211006065012.16508-1-pbhagavatula@marvell.com>",
        "References": "<20211003082710.8398-1-pbhagavatula@marvell.com>\n <20211006065012.16508-1-pbhagavatula@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "wa4lMLHX3ur7D70P18t-kX0NsQdsEsy0",
        "X-Proofpoint-ORIG-GUID": "wa4lMLHX3ur7D70P18t-kX0NsQdsEsy0",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475\n definitions=2021-10-05_06,2021-10-04_01,2020-04-07_01",
        "Subject": "[dpdk-dev] [PATCH v3 11/14] eventdev: move timer adapters memory to\n hugepage",
        "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: Pavan Nikhilesh <pbhagavatula@marvell.com>\n\nMove memory used by timer adapters to hugepage.\nAllocate memory on the first adapter create or lookup to address\nboth primary and secondary process usecases.\nThis will prevent TLB misses if any and aligns to memory structure\nof other subsystems.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n lib/eventdev/rte_event_timer_adapter.c | 24 +++++++++++++++++++++++-\n 1 file changed, 23 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/eventdev/rte_event_timer_adapter.c b/lib/eventdev/rte_event_timer_adapter.c\nindex ae55407042..c4dc7a5fd4 100644\n--- a/lib/eventdev/rte_event_timer_adapter.c\n+++ b/lib/eventdev/rte_event_timer_adapter.c\n@@ -33,7 +33,7 @@ RTE_LOG_REGISTER_SUFFIX(evtim_logtype, adapter.timer, NOTICE);\n RTE_LOG_REGISTER_SUFFIX(evtim_buffer_logtype, adapter.timer, NOTICE);\n RTE_LOG_REGISTER_SUFFIX(evtim_svc_logtype, adapter.timer.svc, NOTICE);\n \n-static struct rte_event_timer_adapter adapters[RTE_EVENT_TIMER_ADAPTER_NUM_MAX];\n+static struct rte_event_timer_adapter *adapters;\n \n static const struct event_timer_adapter_ops swtim_ops;\n \n@@ -138,6 +138,17 @@ rte_event_timer_adapter_create_ext(\n \tint n, ret;\n \tstruct rte_eventdev *dev;\n \n+\tif (adapters == NULL) {\n+\t\tadapters = rte_zmalloc(\"Eventdev\",\n+\t\t\t\t       sizeof(struct rte_event_timer_adapter) *\n+\t\t\t\t\t       RTE_EVENT_TIMER_ADAPTER_NUM_MAX,\n+\t\t\t\t       RTE_CACHE_LINE_SIZE);\n+\t\tif (adapters == NULL) {\n+\t\t\trte_errno = ENOMEM;\n+\t\t\treturn NULL;\n+\t\t}\n+\t}\n+\n \tif (conf == NULL) {\n \t\trte_errno = EINVAL;\n \t\treturn NULL;\n@@ -312,6 +323,17 @@ rte_event_timer_adapter_lookup(uint16_t adapter_id)\n \tint ret;\n \tstruct rte_eventdev *dev;\n \n+\tif (adapters == NULL) {\n+\t\tadapters = rte_zmalloc(\"Eventdev\",\n+\t\t\t\t       sizeof(struct rte_event_timer_adapter) *\n+\t\t\t\t\t       RTE_EVENT_TIMER_ADAPTER_NUM_MAX,\n+\t\t\t\t       RTE_CACHE_LINE_SIZE);\n+\t\tif (adapters == NULL) {\n+\t\t\trte_errno = ENOMEM;\n+\t\t\treturn NULL;\n+\t\t}\n+\t}\n+\n \tif (adapters[adapter_id].allocated)\n \t\treturn &adapters[adapter_id]; /* Adapter is already loaded */\n \n",
    "prefixes": [
        "v3",
        "11/14"
    ]
}