get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 118071,
    "url": "https://patches.dpdk.org/api/patches/118071/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20221012124021.52265-1-markus.theil@tu-ilmenau.de/",
    "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": "<20221012124021.52265-1-markus.theil@tu-ilmenau.de>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221012124021.52265-1-markus.theil@tu-ilmenau.de",
    "date": "2022-10-12T12:40:21",
    "name": "build: make headroom and max memzones configurable",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "ed1081456d889165ed774cf7cf9e64047a0fa9cb",
    "submitter": {
        "id": 747,
        "url": "https://patches.dpdk.org/api/people/747/?format=api",
        "name": "Markus Theil",
        "email": "markus.theil@tu-ilmenau.de"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20221012124021.52265-1-markus.theil@tu-ilmenau.de/mbox/",
    "series": [
        {
            "id": 25187,
            "url": "https://patches.dpdk.org/api/series/25187/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=25187",
            "date": "2022-10-12T12:40:21",
            "name": "build: make headroom and max memzones configurable",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/25187/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/118071/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/118071/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 4A8D8A00C4;\n\tWed, 12 Oct 2022 14:40:32 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id DD7C243053;\n\tWed, 12 Oct 2022 14:40:31 +0200 (CEST)",
            "from smail.rz.tu-ilmenau.de (smail.rz.tu-ilmenau.de [141.24.186.67])\n by mails.dpdk.org (Postfix) with ESMTP id BB8654303E\n for <dev@dpdk.org>; Wed, 12 Oct 2022 14:40:30 +0200 (CEST)",
            "from localhost.localdomain (dialin-ip-23-165.ilmenau.net\n [80.88.23.165])\n by smail.rz.tu-ilmenau.de (Postfix) with ESMTPA id 5EE43580097;\n Wed, 12 Oct 2022 14:40:30 +0200 (CEST)"
        ],
        "From": "Markus Theil <markus.theil@tu-ilmenau.de>",
        "To": "dev@dpdk.org",
        "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Markus Theil <markus.theil@tu-ilmenau.de>",
        "Subject": "[PATCH] build: make headroom and max memzones configurable",
        "Date": "Wed, 12 Oct 2022 14:40:21 +0200",
        "Message-Id": "<20221012124021.52265-1-markus.theil@tu-ilmenau.de>",
        "X-Mailer": "git-send-email 2.38.0",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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"
    },
    "content": "We often set headroom and memzones to a different value\nin our builds. This should also be useful in other projects.\n\nSigned-off-by: Markus Theil <markus.theil@tu-ilmenau.de>\n---\n config/meson.build  | 2 ++\n config/rte_config.h | 2 --\n meson_options.txt   | 4 ++++\n 3 files changed, 6 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/config/meson.build b/config/meson.build\nindex 610e1f9ea7..8708b45c5c 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -299,6 +299,8 @@ endforeach\n dpdk_conf.set('RTE_MAX_ETHPORTS', get_option('max_ethports'))\n dpdk_conf.set('RTE_LIBEAL_USE_HPET', get_option('use_hpet'))\n dpdk_conf.set('RTE_ENABLE_TRACE_FP', get_option('enable_trace_fp'))\n+dpdk_conf.set('RTE_PKTMBUF_HEADROOM', get_option('pktmbuf_headroom'))\n+dpdk_conf.set('RTE_MAX_MEMZONE', get_option('max_memzones'))\n # values which have defaults which may be overridden\n dpdk_conf.set('RTE_MAX_VFIO_GROUPS', 64)\n dpdk_conf.set('RTE_DRIVER_MEMPOOL_BUCKET_SIZE_KB', 64)\ndiff --git a/config/rte_config.h b/config/rte_config.h\nindex b2377a04e5..235bbd860a 100644\n--- a/config/rte_config.h\n+++ b/config/rte_config.h\n@@ -34,7 +34,6 @@\n #define RTE_MAX_MEM_MB_PER_LIST 32768\n #define RTE_MAX_MEMSEG_PER_TYPE 32768\n #define RTE_MAX_MEM_MB_PER_TYPE 65536\n-#define RTE_MAX_MEMZONE 2560\n #define RTE_MAX_TAILQ 32\n #define RTE_LOG_DP_LEVEL RTE_LOG_INFO\n #define RTE_BACKTRACE 1\n@@ -50,7 +49,6 @@\n \n /* mbuf defines */\n #define RTE_MBUF_DEFAULT_MEMPOOL_OPS \"ring_mp_mc\"\n-#define RTE_PKTMBUF_HEADROOM 128\n \n /* ether defines */\n #define RTE_MAX_QUEUES_PER_PORT 1024\ndiff --git a/meson_options.txt b/meson_options.txt\nindex 541cb3c7b4..0574dd0fff 100644\n--- a/meson_options.txt\n+++ b/meson_options.txt\n@@ -50,3 +50,7 @@ option('tests', type: 'boolean', value: false, description:\n        'build unit tests')\n option('use_hpet', type: 'boolean', value: false, description:\n        'use HPET timer in EAL')\n+option('pktmbuf_headroom', type: 'integer', value: 128, description:\n+       'Set mbuf headroom to a custom value')\n+option('max_memzones', type: 'integer', value: 2560, description:\n+       'Set maximum allowed number of memzones')\n",
    "prefixes": []
}