get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64265,
    "url": "https://patches.dpdk.org/api/patches/64265/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200107131738.11932-1-pbhagavatula@marvell.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20200107131738.11932-1-pbhagavatula@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200107131738.11932-1-pbhagavatula@marvell.com",
    "date": "2020-01-07T13:17:38",
    "name": "event/octeontx2: relax memory requirement for event timers",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "0a152a2754e8b2566a74c297370e64436b7c2822",
    "submitter": {
        "id": 1183,
        "url": "https://patches.dpdk.org/api/people/1183/?format=api",
        "name": "Pavan Nikhilesh Bhagavatula",
        "email": "pbhagavatula@marvell.com"
    },
    "delegate": {
        "id": 310,
        "url": "https://patches.dpdk.org/api/users/310/?format=api",
        "username": "jerin",
        "first_name": "Jerin",
        "last_name": "Jacob",
        "email": "jerinj@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200107131738.11932-1-pbhagavatula@marvell.com/mbox/",
    "series": [
        {
            "id": 8003,
            "url": "https://patches.dpdk.org/api/series/8003/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8003",
            "date": "2020-01-07T13:17:38",
            "name": "event/octeontx2: relax memory requirement for event timers",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/8003/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/64265/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/64265/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 904D9A04F6;\n\tTue,  7 Jan 2020 14:17:53 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 804AB1D957;\n\tTue,  7 Jan 2020 14:17:52 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id C154B1D94A\n for <dev@dpdk.org>; Tue,  7 Jan 2020 14:17:50 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 007DDAas028742 for <dev@dpdk.org>; Tue, 7 Jan 2020 05:17:49 -0800",
            "from sc-exch03.marvell.com ([199.233.58.183])\n by mx0a-0016f401.pphosted.com with ESMTP id 2xarxvafsx-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Tue, 07 Jan 2020 05:17:49 -0800",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Jan\n 2020 05:17:42 -0800",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Tue, 7 Jan 2020 05:17:42 -0800",
            "from BG-LT7430.marvell.com (unknown [10.28.17.41])\n by maili.marvell.com (Postfix) with ESMTP id BC1F03F704D;\n Tue,  7 Jan 2020 05:17:41 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0818; bh=8rMSp0mvXXKVSkTAkLqsUyK/5MnOibviD9VTO6/GAZw=;\n b=sNJtWnILrmu6aONfes+DRZoxmbwb9tOUC16j7OJxQd/MbROIDP5r1Mi7EfEyBXiKqn8z\n CUA0zJMk0VnQQU2T6AL6+ovSOtDeGve9Pn3esPOe15WO+BU03EviQFJm/Cb6nUybbbu/\n CiU0IzHMrbBJWcKl7Qp4qDVlpPHM1tt110mXHy7Iav3Q2x8I0x0CZhSxVyKxBG5JIboR\n 5ypxTXG/fOgTkXo5gsIKT74Te2u5K9OurHGckGs4h13XPOb98OlL5dzgWz/XJGblPs9D\n lsf44/i7Iz3U+NiYaJXP10vBdpmvp8DPQWPabTosBi8ceNlIcmM6VAs8Z6szeI1Lhx6Q QA==",
        "From": "<pbhagavatula@marvell.com>",
        "To": "<jerinj@marvell.com>, Pavan Nikhilesh <pbhagavatula@marvell.com>",
        "CC": "<dev@dpdk.org>",
        "Date": "Tue, 7 Jan 2020 18:47:38 +0530",
        "Message-ID": "<20200107131738.11932-1-pbhagavatula@marvell.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.95,18.0.572\n definitions=2020-01-07_03:2020-01-06,2020-01-07 signatures=0",
        "Subject": "[dpdk-dev] [PATCH] event/octeontx2: relax memory requirement for\n\tevent timers",
        "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 <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\nRelax memory requirement for event timers when internal mempool used is\nocteontx2 mempool.\nAdd debug log to print the memory used.\n\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n drivers/event/octeontx2/otx2_tim_evdev.c | 11 ++++++++++-\n 1 file changed, 10 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/event/octeontx2/otx2_tim_evdev.c b/drivers/event/octeontx2/otx2_tim_evdev.c\nindex b275c6922..cd0dcde24 100644\n--- a/drivers/event/octeontx2/otx2_tim_evdev.c\n+++ b/drivers/event/octeontx2/otx2_tim_evdev.c\n@@ -327,7 +327,11 @@ otx2_tim_ring_create(struct rte_event_timer_adapter *adptr)\n \t\t\ttim_optimze_bkt_param(tim_ring);\n \t}\n \n-\ttim_ring->nb_chunks = tim_ring->nb_chunks * tim_ring->nb_bkts;\n+\tif (tim_ring->disable_npa)\n+\t\ttim_ring->nb_chunks = tim_ring->nb_chunks * tim_ring->nb_bkts;\n+\telse\n+\t\ttim_ring->nb_chunks = tim_ring->nb_chunks + tim_ring->nb_bkts;\n+\n \t/* Create buckets. */\n \ttim_ring->bkt = rte_zmalloc(\"otx2_tim_bucket\", (tim_ring->nb_bkts) *\n \t\t\t\t    sizeof(struct otx2_tim_bkt),\n@@ -376,6 +380,11 @@ otx2_tim_ring_create(struct rte_event_timer_adapter *adptr)\n \t\t\t RTE_EVENT_TYPE_TIMER);\n \tsso_xae_reconfigure(dev->event_dev);\n \n+\totx2_tim_dbg(\"Total memory used %\"PRIu64\"MB\\n\",\n+\t\t\t(uint64_t)(((tim_ring->nb_chunks * tim_ring->chunk_sz)\n+\t\t\t+ (tim_ring->nb_bkts * sizeof(struct otx2_tim_bkt))) /\n+\t\t\tBIT_ULL(20)));\n+\n \treturn rc;\n \n chnk_mem_err:\n",
    "prefixes": []
}