Show a patch.

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

{
    "id": 238,
    "url": "http://patches.dpdk.org/api/patches/238/",
    "web_url": "http://patches.dpdk.org/patch/238/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<1409062262-8998-1-git-send-email-david.marchand@6wind.com>",
    "date": "2014-08-26T14:11:02",
    "name": "[dpdk-dev] eal: remove unused macros",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "d17abf478f012ec448430c6bf05e7224121de6cf",
    "submitter": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/people/3/",
        "name": "David Marchand",
        "email": "david.marchand@6wind.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/patch/238/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/238/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/238/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<david.marchand@6wind.com>",
        "X-BeenThere": "dev@dpdk.org",
        "X-Gm-Message-State": "ALoCoQkOoV2VZxWiPoGUsGJRGe2uKrNGxhwBi2N65Qez3lXrphKjbK5bjwSLP8rTS0u8IcOyJca4",
        "From": "David Marchand <david.marchand@6wind.com>",
        "Date": "Tue, 26 Aug 2014 16:11:02 +0200",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "X-List-Received-Date": "Tue, 26 Aug 2014 14:07:07 -0000",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "X-Mailman-Version": "2.1.15",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "Precedence": "list",
        "Message-Id": "<1409062262-8998-1-git-send-email-david.marchand@6wind.com>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:subject:date:message-id;\n\tbh=Qcs/Z3nuHKYy3ncMNhKTepjRrO4gbulO5xBgkU6enT4=;\n\tb=TnvQKry5I03uwG+5eNVvsIMYVv7Nu/+xOCh0inLsUhLCD5Gh2S6D82FgOtKb1qQ9c2\n\tYjFw3OKWLaConMYIDH4Xucd4PlwzeTker2BNugUsPpZkYy2L01QAVN+lQxywB6Cu9bv0\n\tce22WxC9/sxM/4BpngUJHTgXQ9znb58uSKHN4WMqXtLcj9RMkYakQ3O/jm9z+X05N4iQ\n\tuOhH8Sx0CeHy0d4HWfYWa5q/8bfYoLH5qD6pkDSUcB83Haq6VDSrUD+iw2uAUtb0VuY3\n\tscCZTgNF1oQWRlhfzjNLx/r6VPB6Uj1H/jeB/kGDVWreaK5+Mzk//lpXjDOtT8ZUw+EJ\n\tXeAA==",
        "Received": [
            "from mail-wi0-f182.google.com (mail-wi0-f182.google.com\n\t[209.85.212.182]) by dpdk.org (Postfix) with ESMTP id 5F30AB3B1\n\tfor <dev@dpdk.org>; Tue, 26 Aug 2014 16:07:07 +0200 (CEST)",
            "by mail-wi0-f182.google.com with SMTP id d1so4229020wiv.15\n\tfor <dev@dpdk.org>; Tue, 26 Aug 2014 07:11:07 -0700 (PDT)",
            "from alcyon.dev.6wind.com (guy78-3-82-239-227-177.fbx.proxad.net.\n\t[82.239.227.177]) by mx.google.com with ESMTPSA id\n\tys5sm8612163wjc.25.2014.08.26.07.11.06 for <dev@dpdk.org>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 26 Aug 2014 07:11:06 -0700 (PDT)"
        ],
        "X-Mailer": "git-send-email 1.7.10.4",
        "X-Received": "by 10.181.12.7 with SMTP id em7mr9980012wid.57.1409062267430;\n\tTue, 26 Aug 2014 07:11:07 -0700 (PDT)",
        "To": "dev@dpdk.org",
        "Subject": "[dpdk-dev] [PATCH] eal: remove unused macros"
    },
    "content": "Clean both linux and bsd implementations from unused macros.\n\nSigned-off-by: David Marchand <david.marchand@6wind.com>\n---\n lib/librte_eal/bsdapp/eal/eal.c           |   18 ------------------\n lib/librte_eal/bsdapp/eal/eal_pci.c       |    7 -------\n lib/librte_eal/bsdapp/eal/eal_timer.c     |    2 --\n lib/librte_eal/linuxapp/eal/eal.c         |    2 --\n lib/librte_eal/linuxapp/eal/eal_ivshmem.c |    1 -\n lib/librte_eal/linuxapp/eal/eal_timer.c   |    2 --\n 6 files changed, 32 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c\nindex 96b54e3..a296da5 100644\n--- a/lib/librte_eal/bsdapp/eal/eal.c\n+++ b/lib/librte_eal/bsdapp/eal/eal.c\n@@ -96,28 +96,10 @@\n #define OPT_SYSLOG      \"syslog\"\n #define OPT_LOG_LEVEL   \"log-level\"\n \n-#define RTE_EAL_BLACKLIST_SIZE\t0x100\n-\n #define MEMSIZE_IF_NO_HUGE_PAGE (64ULL * 1024ULL * 1024ULL)\n \n-#define SOCKET_MEM_STRLEN (RTE_MAX_NUMA_NODES * 10)\n-\n-#define HIGHEST_RPL 3\n-\n #define BITS_PER_HEX 4\n \n-#define GET_BLACKLIST_FIELD(in, fd, lim, dlm)                   \\\n-{                                                               \\\n-\tunsigned long val;                                      \\\n-\tchar *end;                                              \\\n-\terrno = 0;                                              \\\n-\tval = strtoul((in), &end, 16);                          \\\n-\tif (errno != 0 || end[0] != (dlm) || val > (lim))       \\\n-\t\treturn (-EINVAL);                               \\\n-\t(fd) = (typeof (fd))val;                                \\\n-\t(in) = end + 1;                                         \\\n-}\n-\n /* Allow the application to print its usage message too if set */\n static rte_usage_hook_t\trte_application_usage_hook = NULL;\n /* early configuration structure, when memory config is not mmapped */\ndiff --git a/lib/librte_eal/bsdapp/eal/eal_pci.c b/lib/librte_eal/bsdapp/eal/eal_pci.c\nindex 2bbbeb0..54fcaf0 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_pci.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_pci.c\n@@ -156,10 +156,6 @@ fail:\n \treturn NULL;\n }\n \n-#ifndef OFF_MAX\n-#define OFF_MAX              ((uint64_t)(off_t)-1)\n-#endif\n-\n static int\n pci_uio_map_secondary(struct rte_pci_device *dev)\n {\n@@ -274,9 +270,6 @@ pci_uio_map_resource(struct rte_pci_device *dev)\n \treturn (0);\n }\n \n-/* parse the \"resource\" sysfs file */\n-#define IORESOURCE_MEM  0x00000200\n-\n /* Compare two PCI device addresses. */\n static int\n pci_addr_comparison(struct rte_pci_addr *addr, struct rte_pci_addr *addr2)\ndiff --git a/lib/librte_eal/bsdapp/eal/eal_timer.c b/lib/librte_eal/bsdapp/eal/eal_timer.c\nindex 9ac3f2e..fd800b9 100644\n--- a/lib/librte_eal/bsdapp/eal/eal_timer.c\n+++ b/lib/librte_eal/bsdapp/eal/eal_timer.c\n@@ -70,8 +70,6 @@ static uint64_t eal_tsc_resolution_hz = 0;\n /* General capabilities register */\n #define CLK_PERIOD_SHIFT     32 /* Clock period shift. */\n #define CLK_PERIOD_MASK      0xffffffff00000000ULL /* Clock period mask. */\n-#define COUNT_SIZE_CAP_SHIFT 13 /* Count size capa. shift. */\n-#define COUNT_SIZE_CAP_MASK 0x0000000000002000ULL /* Count size capa. mask. */\n \n /**\n  * HPET timer registers. From the Intel IA-PC HPET (High Precision Event\ndiff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex 874209b..2940e69 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -103,8 +103,6 @@\n #define OPT_CREATE_UIO_DEV \"create-uio-dev\"\n #define OPT_VFIO_INTR    \"vfio-intr\"\n \n-#define RTE_EAL_BLACKLIST_SIZE\t0x100\n-\n #define MEMSIZE_IF_NO_HUGE_PAGE (64ULL * 1024ULL * 1024ULL)\n \n #define SOCKET_MEM_STRLEN (RTE_MAX_NUMA_NODES * 10)\ndiff --git a/lib/librte_eal/linuxapp/eal/eal_ivshmem.c b/lib/librte_eal/linuxapp/eal/eal_ivshmem.c\nindex 16d407e..413a9ba 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_ivshmem.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_ivshmem.c\n@@ -62,7 +62,6 @@\n #define PCI_DEVICE_ID_IVSHMEM 0x1110\n \n #define IVSHMEM_MAGIC 0x0BADC0DE\n-#define IVSHMEM_METADATA_SIZE 0x1000\n \n #define IVSHMEM_RESOURCE_PATH \"/sys/bus/pci/devices/%04x:%02x:%02x.%x/resource2\"\n #define IVSHMEM_CONFIG_PATH \"/var/run/.%s_ivshmem_config\"\ndiff --git a/lib/librte_eal/linuxapp/eal/eal_timer.c b/lib/librte_eal/linuxapp/eal/eal_timer.c\nindex 7f7589f..ca57916 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_timer.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_timer.c\n@@ -71,8 +71,6 @@ static uint64_t eal_tsc_resolution_hz = 0;\n /* General capabilities register */\n #define CLK_PERIOD_SHIFT     32 /* Clock period shift. */\n #define CLK_PERIOD_MASK      0xffffffff00000000ULL /* Clock period mask. */\n-#define COUNT_SIZE_CAP_SHIFT 13 /* Count size capa. shift. */\n-#define COUNT_SIZE_CAP_MASK 0x0000000000002000ULL /* Count size capa. mask. */\n \n /**\n  * HPET timer registers. From the Intel IA-PC HPET (High Precision Event\n",
    "prefixes": [
        "dpdk-dev"
    ]
}