get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64168,
    "url": "http://patches.dpdk.org/api/patches/64168/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200102174838.12908-2-dharmik.thakkar@arm.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": "<20200102174838.12908-2-dharmik.thakkar@arm.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200102174838.12908-2-dharmik.thakkar@arm.com",
    "date": "2020-01-02T17:48:32",
    "name": "[v2,1/7] net/ixgbe: avoid multpile definitions of 'bool'",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "2666319750bf7d1ac8e7dd0de8a7581aceb86439",
    "submitter": {
        "id": 1108,
        "url": "http://patches.dpdk.org/api/people/1108/?format=api",
        "name": "Dharmik Thakkar",
        "email": "dharmik.thakkar@arm.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200102174838.12908-2-dharmik.thakkar@arm.com/mbox/",
    "series": [
        {
            "id": 7966,
            "url": "http://patches.dpdk.org/api/series/7966/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=7966",
            "date": "2020-01-02T17:48:31",
            "name": "remove 'typedef int bool'",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/7966/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64168/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/64168/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 D9370A04F3;\n\tThu,  2 Jan 2020 18:49:25 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A11121C199;\n\tThu,  2 Jan 2020 18:49:19 +0100 (CET)",
            "from foss.arm.com (foss.arm.com [217.140.110.172])\n by dpdk.org (Postfix) with ESMTP id A1A7F1C193\n for <dev@dpdk.org>; Thu,  2 Jan 2020 18:49:16 +0100 (CET)",
            "from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14])\n by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 080DEDA7;\n Thu,  2 Jan 2020 09:49:16 -0800 (PST)",
            "from dp6132.usa.Arm.com (dp6132.usa.arm.com [10.118.91.150])\n by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EDA773F703;\n Thu,  2 Jan 2020 09:49:15 -0800 (PST)"
        ],
        "From": "Dharmik Thakkar <dharmik.thakkar@arm.com>",
        "To": "Wenzhuo Lu <wenzhuo.lu@intel.com>,\n Konstantin Ananyev <konstantin.ananyev@intel.com>",
        "Cc": "dev@dpdk.org,\n\tDharmik Thakkar <dharmik.thakkar@arm.com>",
        "Date": "Thu,  2 Jan 2020 17:48:32 +0000",
        "Message-Id": "<20200102174838.12908-2-dharmik.thakkar@arm.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200102174838.12908-1-dharmik.thakkar@arm.com>",
        "References": "<20191003224419.23968-1-dharmik.thakkar@arm.com>\n <20200102174838.12908-1-dharmik.thakkar@arm.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 1/7] net/ixgbe: avoid multpile definitions of\n\t'bool'",
        "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": "Compilation issue arises due to multiple definitions of 'bool'\nin 'ixgbe_ethdev.h'.\n\nError:\n'/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c: In function\n‘ixgbe_dev_setup_link_alarm_handler’:\n/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:4075:43:\nerror: passing argument 3 of ‘ixgbe_get_link_capabilities’ from\nincompatible pointer type [-Werror=incompatible-pointer-types]\n   ixgbe_get_link_capabilities(hw, &speed, &autoneg);\n                                           ^\nIn file included from /dpdk/drivers/net/ixgbe/ixgbe_ethdev.c:41:0:\n/dpdk/drivers/net/ixgbe/base/ixgbe_api.h:63:5: note: expected\n‘bool * {aka int *}’ but argument is of type ‘_Bool *’'\n\nSigned-off-by: Dharmik Thakkar <dharmik.thakkar@arm.com>\nReviewed-by: Phil Yang <phil.yang@arm.com>\nReviewed-by: Gavin Hu <gavin.hu@arm.com>\n---\n drivers/net/ixgbe/base/ixgbe_osdep.h | 4 +---\n drivers/net/ixgbe/ixgbe_ethdev.c     | 7 ++++---\n 2 files changed, 5 insertions(+), 6 deletions(-)",
    "diff": "diff --git a/drivers/net/ixgbe/base/ixgbe_osdep.h b/drivers/net/ixgbe/base/ixgbe_osdep.h\nindex ea8dc1cbe570..844d1701f595 100644\n--- a/drivers/net/ixgbe/base/ixgbe_osdep.h\n+++ b/drivers/net/ixgbe/base/ixgbe_osdep.h\n@@ -9,6 +9,7 @@\n #include <stdint.h>\n #include <stdio.h>\n #include <stdarg.h>\n+#include <stdbool.h>\n #include <rte_common.h>\n #include <rte_debug.h>\n #include <rte_cycles.h>\n@@ -82,9 +83,6 @@ typedef int16_t\t\ts16;\n typedef uint32_t\tu32;\n typedef int32_t\t\ts32;\n typedef uint64_t\tu64;\n-#ifndef __cplusplus\n-typedef int\t\tbool;\n-#endif\n \n #define mb()\trte_mb()\n #define wmb()\trte_wmb()\ndiff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c\nindex 2c6fd0f13128..6cbd783e3a21 100644\n--- a/drivers/net/ixgbe/ixgbe_ethdev.c\n+++ b/drivers/net/ixgbe/ixgbe_ethdev.c\n@@ -2544,7 +2544,8 @@ ixgbe_dev_start(struct rte_eth_dev *dev)\n \tstruct rte_pci_device *pci_dev = RTE_ETH_DEV_TO_PCI(dev);\n \tstruct rte_intr_handle *intr_handle = &pci_dev->intr_handle;\n \tuint32_t intr_vector = 0;\n-\tint err, link_up = 0, negotiate = 0;\n+\tint err;\n+\tbool link_up = 0, negotiate = 0;\n \tuint32_t speed = 0;\n \tuint32_t allowed_speeds = 0;\n \tint mask = 0;\n@@ -3993,7 +3994,7 @@ ixgbevf_dev_info_get(struct rte_eth_dev *dev,\n \n static int\n ixgbevf_check_link(struct ixgbe_hw *hw, ixgbe_link_speed *speed,\n-\t\t   int *link_up, int wait_to_complete)\n+\t\t   bool *link_up, int wait_to_complete)\n {\n \tstruct ixgbe_adapter *adapter = container_of(hw,\n \t\t\t\t\t\t     struct ixgbe_adapter, hw);\n@@ -4124,7 +4125,7 @@ ixgbe_dev_link_update_share(struct rte_eth_dev *dev,\n \tixgbe_link_speed link_speed = IXGBE_LINK_SPEED_UNKNOWN;\n \tstruct ixgbe_interrupt *intr =\n \t\tIXGBE_DEV_PRIVATE_TO_INTR(dev->data->dev_private);\n-\tint link_up;\n+\tbool link_up;\n \tint diag;\n \tint wait = 1;\n \tu32 esdp_reg;\n",
    "prefixes": [
        "v2",
        "1/7"
    ]
}