get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 97064,
    "url": "https://patches.dpdk.org/api/patches/97064/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210818163816.19143-1-bruce.richardson@intel.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": "<20210818163816.19143-1-bruce.richardson@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210818163816.19143-1-bruce.richardson@intel.com",
    "date": "2021-08-18T16:38:15",
    "name": "[1/2] net/i40e: fix generic build on FreeBSD",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "540e09b56286dd8b1e11c602b964429bb5171bfa",
    "submitter": {
        "id": 20,
        "url": "https://patches.dpdk.org/api/people/20/?format=api",
        "name": "Bruce Richardson",
        "email": "bruce.richardson@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210818163816.19143-1-bruce.richardson@intel.com/mbox/",
    "series": [
        {
            "id": 18336,
            "url": "https://patches.dpdk.org/api/series/18336/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=18336",
            "date": "2021-08-18T16:38:15",
            "name": "[1/2] net/i40e: fix generic build on FreeBSD",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/18336/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/97064/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/97064/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 A1EC5A0C4C;\n\tWed, 18 Aug 2021 18:38:47 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 12A1141177;\n\tWed, 18 Aug 2021 18:38:47 +0200 (CEST)",
            "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 61CF24069E;\n Wed, 18 Aug 2021 18:38:45 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 Aug 2021 09:38:44 -0700",
            "from silpixa00399126.ir.intel.com ([10.237.223.29])\n by orsmga008.jf.intel.com with ESMTP; 18 Aug 2021 09:38:42 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10080\"; a=\"277396144\"",
            "E=Sophos;i=\"5.84,330,1620716400\"; d=\"scan'208\";a=\"277396144\"",
            "E=Sophos;i=\"5.84,330,1620716400\"; d=\"scan'208\";a=\"471597617\""
        ],
        "X-ExtLoop1": "1",
        "From": "Bruce Richardson <bruce.richardson@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "brian90013@gmail.com, Bruce Richardson <bruce.richardson@intel.com>,\n wenzhuo.lu@intel.com, stable@dpdk.org, Beilei Xing <beilei.xing@intel.com>",
        "Date": "Wed, 18 Aug 2021 17:38:15 +0100",
        "Message-Id": "<20210818163816.19143-1-bruce.richardson@intel.com>",
        "X-Mailer": "git-send-email 2.30.2",
        "In-Reply-To": "<bug-788-3@http.bugs.dpdk.org/>",
        "References": "<bug-788-3@http.bugs.dpdk.org/>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH 1/2] net/i40e: fix generic build on FreeBSD",
        "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": "The common header file for vectorization is included in multiple files,\nand so must use macros for the current compilation unit, rather than the\ncompiler-capability flag set for the whole driver. With the current,\nincorrect, macro, the AVX512 or AVX2 flags may be set when compiling up\nSSE code, leading to compilation errors. Changing from \"CC_AVX*_SUPPORT\"\nto the compiler-defined \"__AVX*__\" macros fixes this issue.\n\nBugzilla ID: 788\nFixes: 0604b1f2208f (\"net/i40e: fix crash in AVX512\")\nCc: wenzhuo.lu@intel.com\nCc: stable@dpdk.org\n\nSigned-off-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n drivers/net/i40e/i40e_rxtx_vec_common.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/i40e_rxtx_vec_common.h b/drivers/net/i40e/i40e_rxtx_vec_common.h\nindex f52ed98d62..65715ed1ce 100644\n--- a/drivers/net/i40e/i40e_rxtx_vec_common.h\n+++ b/drivers/net/i40e/i40e_rxtx_vec_common.h\n@@ -268,7 +268,7 @@ i40e_rx_vec_dev_conf_condition_check_default(struct rte_eth_dev *dev)\n #endif\n }\n \n-#ifdef CC_AVX2_SUPPORT\n+#ifdef __AVX2__\n static __rte_always_inline void\n i40e_rxq_rearm_common(struct i40e_rx_queue *rxq, __rte_unused bool avx512)\n {\n@@ -329,7 +329,7 @@ i40e_rxq_rearm_common(struct i40e_rx_queue *rxq, __rte_unused bool avx512)\n \t\t_mm_store_si128((__m128i *)&rxdp++->read, dma_addr1);\n \t}\n #else\n-#ifdef CC_AVX512_SUPPORT\n+#ifdef __AVX512VL__\n \tif (avx512) {\n \t\tstruct rte_mbuf *mb0, *mb1, *mb2, *mb3;\n \t\tstruct rte_mbuf *mb4, *mb5, *mb6, *mb7;\n",
    "prefixes": [
        "1/2"
    ]
}