get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 106175,
    "url": "http://patches.dpdk.org/api/patches/106175/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220121103122.2926856-15-ronan.randles@intel.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": "<20220121103122.2926856-15-ronan.randles@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220121103122.2926856-15-ronan.randles@intel.com",
    "date": "2022-01-21T10:31:21",
    "name": "[v2,14/15] net/vxlan: instance flag endianness refactored",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "795b7efdafab8c7b30320e9bd08c8638719157b2",
    "submitter": {
        "id": 2439,
        "url": "http://patches.dpdk.org/api/people/2439/?format=api",
        "name": "Ronan Randles",
        "email": "ronan.randles@intel.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/20220121103122.2926856-15-ronan.randles@intel.com/mbox/",
    "series": [
        {
            "id": 21295,
            "url": "http://patches.dpdk.org/api/series/21295/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21295",
            "date": "2022-01-21T10:31:07",
            "name": "add packet generator library and example app",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/21295/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/106175/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/106175/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 C6F70A034E;\n\tFri, 21 Jan 2022 11:32:56 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 7751E42794;\n\tFri, 21 Jan 2022 11:31:49 +0100 (CET)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by mails.dpdk.org (Postfix) with ESMTP id 96A8942780\n for <dev@dpdk.org>; Fri, 21 Jan 2022 11:31:47 +0100 (CET)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Jan 2022 02:31:46 -0800",
            "from silpixa00401120.ir.intel.com ([10.55.128.255])\n by orsmga008.jf.intel.com with ESMTP; 21 Jan 2022 02:31:45 -0800"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1642761107; x=1674297107;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=KJD9CFYwks2bpcX/wrPxN00yUIJ0KagbgTrqNWaax+Y=;\n b=KuqU+CRAN6xSwHvG8VJaxuCH3BVfsNCnXD9IaqwCtL4jZADqFXWKGEmR\n tKl9XYvbWvYg579xyP2ie3S609oV9/FbWoIdlYkILxXFghxLuNDjJsQCm\n NBV0LVCjJ/kMuiJsQIVd9imjgnnvvVj7AqmGKINhYcrn6Rn0WbDWxUBk/\n TYzPyGgdDcercFDwsrh7AgijIwnt/ZvH5PsQHqgVWurqgzRVsCKw0T7Sg\n NPiPGvwz4xHsJTQp1R8zrrQU61Ib9NFA2raopomuTQ7/sGdkKSpa5fMSH\n eI01hsbSrdnzY0E5FuHTaR9fpv6bRWgfEigXKBlEOT5DDN6tKuCEDzdg8 A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10233\"; a=\"270045152\"",
            "E=Sophos;i=\"5.88,304,1635231600\"; d=\"scan'208\";a=\"270045152\"",
            "E=Sophos;i=\"5.88,304,1635231600\"; d=\"scan'208\";a=\"533222795\""
        ],
        "X-ExtLoop1": "1",
        "From": "Ronan Randles <ronan.randles@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Ronan Randles <ronan.randles@intel.com>",
        "Subject": "[PATCH v2 14/15] net/vxlan: instance flag endianness refactored",
        "Date": "Fri, 21 Jan 2022 10:31:21 +0000",
        "Message-Id": "<20220121103122.2926856-15-ronan.randles@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220121103122.2926856-1-ronan.randles@intel.com>",
        "References": "<20211214141242.3383831-1-ronan.randles@intel.com>\n <20220121103122.2926856-1-ronan.randles@intel.com>",
        "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": "This patch improves the setting of the instance flag in the\nrte_vxlan_hdr struct, by using a byte to represent vx_flag_bits.\nPreviously it was exposed to the user via a rte_be32_t value, which\nrequired handling endianness at the application level. The code uses a\nunion to ensure that existing code continues to work as before, while\nallowing the improved more usable method to co-exist.\n\nA new #define is introduced to represent the instance bit, which must be\nset if a vxlan header contains a valid VNI field, see\nhttps://datatracker.ietf.org/doc/html/rfc7348 for details\n\nSigned-off-by: Ronan Randles <ronan.randles@intel.com>\n---\n lib/net/rte_vxlan.h | 10 +++++++++-\n 1 file changed, 9 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/lib/net/rte_vxlan.h b/lib/net/rte_vxlan.h\nindex 929fa7a1dd..86b6d8a3ae 100644\n--- a/lib/net/rte_vxlan.h\n+++ b/lib/net/rte_vxlan.h\n@@ -24,6 +24,7 @@ extern \"C\" {\n /** VXLAN default port. */\n #define RTE_VXLAN_DEFAULT_PORT 4789\n #define RTE_VXLAN_GPE_DEFAULT_PORT 4790\n+#define RTE_VXLAN_FLAGS_I (1 << 3)\n \n /**\n  * VXLAN protocol header.\n@@ -31,7 +32,14 @@ extern \"C\" {\n  * Reserved fields (24 bits and 8 bits)\n  */\n struct rte_vxlan_hdr {\n-\trte_be32_t vx_flags; /**< flag (8) + Reserved (24). */\n+\tRTE_STD_C11\n+\tunion {\n+\t\tstruct {\n+\t\t\tuint8_t vx_flag_bits;\n+\t\t\tuint8_t reserved[3];\n+\t\t};\n+\t\trte_be32_t vx_flags; /**< flag (8) + Reserved (24). */\n+\t};\n \trte_be32_t vx_vni;   /**< VNI (24) + Reserved (8). */\n } __rte_packed;\n \n",
    "prefixes": [
        "v2",
        "14/15"
    ]
}