get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 48070,
    "url": "http://patches.dpdk.org/api/patches/48070/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20181114113453.24852-2-christian.ehrhardt@canonical.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": "<20181114113453.24852-2-christian.ehrhardt@canonical.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20181114113453.24852-2-christian.ehrhardt@canonical.com",
    "date": "2018-11-14T11:34:53",
    "name": "[2/2] build: establish an invariant machine type",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "5764f2fabc61338b10ca4835ab12a7dfd6d2f232",
    "submitter": {
        "id": 382,
        "url": "http://patches.dpdk.org/api/people/382/?format=api",
        "name": "Christian Ehrhardt",
        "email": "christian.ehrhardt@canonical.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20181114113453.24852-2-christian.ehrhardt@canonical.com/mbox/",
    "series": [
        {
            "id": 2411,
            "url": "http://patches.dpdk.org/api/series/2411/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2411",
            "date": "2018-11-14T11:34:52",
            "name": "[1/2] build: avoid non supported -march on ppc (meson)",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/2411/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/48070/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/48070/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 F272D5F72;\n\tWed, 14 Nov 2018 12:35:59 +0100 (CET)",
            "from youngberry.canonical.com (youngberry.canonical.com\n\t[91.189.89.112]) by dpdk.org (Postfix) with ESMTP id 9BD285F28\n\tfor <dev@dpdk.org>; Wed, 14 Nov 2018 12:35:57 +0100 (CET)",
            "from 2.general.paelzer.uk.vpn ([10.172.196.173]\n\thelo=Keschdeichel.fritz.box)\n\tby youngberry.canonical.com with esmtpsa\n\t(TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)\n\t(Exim 4.76) (envelope-from <christian.ehrhardt@canonical.com>)\n\tid 1gMtSf-0004OH-D2; Wed, 14 Nov 2018 11:35:57 +0000"
        ],
        "From": "Christian Ehrhardt <christian.ehrhardt@canonical.com>",
        "To": "Luca Boccassi <bluca@debian.org>,\n\tdev <dev@dpdk.org>",
        "Cc": "Christian Ehrhardt <christian.ehrhardt@canonical.com>",
        "Date": "Wed, 14 Nov 2018 12:34:53 +0100",
        "Message-Id": "<20181114113453.24852-2-christian.ehrhardt@canonical.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20181114113453.24852-1-christian.ehrhardt@canonical.com>",
        "References": "<20181114113453.24852-1-christian.ehrhardt@canonical.com>",
        "Subject": "[dpdk-dev] [PATCH 2/2] build: establish an invariant machine type",
        "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": "Add the machine definition 'baseline' which is special compared\nto 'native' (most optimized for current system) or any explicit\ntype (external entity has to decide on the type).\n\nIt defaults to the per arch agreed common minimal baseline\nneeded for DPDK to reasonable work.\n\nThat might not be the most optimized, but the most portable\nversion while still being able to support the CPU features\nrequired for DPDK.\n\nGoing forward this can be bumped up by the DPDK project, but it\ncan never be an invariant like 'native'.\n\nDistributions and other needing portable code are expected to\ndefine the machine as 'baseline'.\n\nSigned-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>\n---\n config/meson.build | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)",
    "diff": "diff --git a/config/meson.build b/config/meson.build\nindex 1af305f46..23f612457 100644\n--- a/config/meson.build\n+++ b/config/meson.build\n@@ -7,6 +7,27 @@ if meson.is_cross_build()\n else\n \tmachine = get_option('machine')\n endif\n+\n+# machine type 'baseline' is special, it defaults to the per arch agreed common\n+# minimal baseline needed for DPDK.\n+# That might not be the most optimized, but the most portable version while\n+# still being able to support the CPU features required for DPDK.\n+# This can be bumped up by the DPDK project, but it can never be an\n+# invariant like 'native'\n+if machine == 'baseline'\n+\tif host_machine.cpu_family().startswith('x86')\n+\t\t# matches the old pre-meson build systems default\n+\t\tmachine = 'corei7'\n+\telif host_machine.cpu_family().startswith('arm')\n+\t\tmachine = 'armv7a'\n+\telif host_machine.cpu_family().startswith('aarch')\n+\t\t# arm64 manages defaults in config/arm/meson.build\n+\t\tmachine = 'default'\n+\telif host_machine.cpu_family().startswith('ppc')\n+\t\tmachine = 'power8'\n+\tendif\n+endif\n+\n dpdk_conf.set('RTE_MACHINE', machine)\n machine_args = []\n \n",
    "prefixes": [
        "2/2"
    ]
}