Show a patch.

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

{
    "id": 73339,
    "url": "https://patches.dpdk.org/api/patches/73339/",
    "web_url": "https://patches.dpdk.org/patch/73339/",
    "project": {
        "id": 1,
        "url": "https://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": "<20200706205234.8040-2-david.marchand@redhat.com>",
    "date": "2020-07-06T20:52:25",
    "name": "[v6,01/10] eal: relocate per thread symbols to common",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "61eb57f3d2fe5bf2430d25c59c10abc7bb3b695b",
    "submitter": {
        "id": 1173,
        "url": "https://patches.dpdk.org/api/people/1173/",
        "name": "David Marchand",
        "email": "david.marchand@redhat.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/patch/73339/mbox/",
    "series": [
        {
            "id": 10826,
            "url": "https://patches.dpdk.org/api/series/10826/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10826",
            "date": "2020-07-06T20:52:25",
            "name": "Register non-EAL threads as lcore",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/10826/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73339/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/73339/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-MC-Unique": "6eYUrWXKOJmhNeDHBBk2dA-1",
        "References": "<20200610144506.30505-1-david.marchand@redhat.com>\n <20200706205234.8040-1-david.marchand@redhat.com>",
        "X-Mailman-Version": "2.1.15",
        "Date": "Mon,  6 Jul 2020 22:52:25 +0200",
        "List-Post": "<mailto:dev@dpdk.org>",
        "Content-Type": "text/plain; charset=US-ASCII",
        "X-Mimecast-Originator": "redhat.com",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Message-Id": "<20200706205234.8040-2-david.marchand@redhat.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "X-Scanned-By": "MIMEDefang 2.84 on 10.5.11.22",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6068BA00C5;\n\tMon,  6 Jul 2020 22:52:59 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 27F2A1DD76;\n\tMon,  6 Jul 2020 22:52:58 +0200 (CEST)",
            "from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com\n [207.211.31.120]) by dpdk.org (Postfix) with ESMTP id 57CE01DD73\n for <dev@dpdk.org>; Mon,  6 Jul 2020 22:52:56 +0200 (CEST)",
            "from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com\n [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id\n us-mta-343-6eYUrWXKOJmhNeDHBBk2dA-1; Mon, 06 Jul 2020 16:52:54 -0400",
            "from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com\n [10.5.11.22])\n (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n (No client certificate requested)\n by mimecast-mx01.redhat.com (Postfix) with ESMTPS id B09F4107ACCA;\n Mon,  6 Jul 2020 20:52:51 +0000 (UTC)",
            "from dmarchan.remote.csb (unknown [10.40.195.188])\n by smtp.corp.redhat.com (Postfix) with ESMTP id D0A7F10013D7;\n Mon,  6 Jul 2020 20:52:46 +0000 (UTC)"
        ],
        "Subject": "[dpdk-dev] [PATCH v6 01/10] eal: relocate per thread symbols to\n\tcommon",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Authentication-Results": "relay.mimecast.com;\n auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=david.marchand@redhat.com",
        "Precedence": "list",
        "X-BeenThere": "dev@dpdk.org",
        "From": "David Marchand <david.marchand@redhat.com>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Cc": "jerinjacobk@gmail.com, bruce.richardson@intel.com, mdr@ashroe.eu,\n thomas@monjalon.net, arybchenko@solarflare.com, ktraynor@redhat.com,\n ian.stokes@intel.com, i.maximets@ovn.org, olivier.matz@6wind.com,\n konstantin.ananyev@intel.com,\n Harini Ramakrishnan <harini.ramakrishnan@microsoft.com>,\n Omar Cardona <ocardona@microsoft.com>,\n Pallavi Kadam <pallavi.kadam@intel.com>,\n Ranjit Menon <ranjit.menon@intel.com>",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "In-Reply-To": "<20200706205234.8040-1-david.marchand@redhat.com>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1594068775;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=3luDOuHXL6VcGyghlQR4RLAC2QnAHL+q7tYCfyn7LmA=;\n b=P66RNV0FemzqfuJ8beLDSDEqvcbjYJ3YjXagIcC+qrJ7oVw/8c/y0jGm6tAGN4co0Rk/Do\n h6DjTuSSXA5LveE4EXXA7HknhOz2e1+CMNhqeFNGdjvcVzvcqoeY6q5G572rzBUIB9kxeS\n eh2C/u3eARD0zXW8E5n0BetaNEJnBYU=",
        "MIME-Version": "1.0",
        "X-Mimecast-Spam-Score": "0",
        "Content-Transfer-Encoding": "8bit",
        "To": "dev@dpdk.org"
    },
    "content": "We have per lcore thread symbols scattered in OS implementations but\ncommon code relies on them.\nMove all of them in common.\n\nRTE_PER_LCORE(_socket_id) and RTE_PER_LCORE(_cpuset) have public\naccessors and are not exported through the library map, they can be\nmade static.\n\nSigned-off-by: David Marchand <david.marchand@redhat.com>\nReviewed-by: Olivier Matz <olivier.matz@6wind.com>\n---\n lib/librte_eal/common/eal_common_thread.c | 5 ++++-\n lib/librte_eal/freebsd/eal_thread.c       | 4 ----\n lib/librte_eal/include/rte_lcore.h        | 1 -\n lib/librte_eal/linux/eal_thread.c         | 4 ----\n lib/librte_eal/windows/eal_thread.c       | 4 ----\n 5 files changed, 4 insertions(+), 14 deletions(-)",
    "diff": "diff --git a/lib/librte_eal/common/eal_common_thread.c b/lib/librte_eal/common/eal_common_thread.c\nindex a341070926..7be80c292e 100644\n--- a/lib/librte_eal/common/eal_common_thread.c\n+++ b/lib/librte_eal/common/eal_common_thread.c\n@@ -21,7 +21,10 @@\n #include \"eal_private.h\"\n #include \"eal_thread.h\"\n \n-RTE_DECLARE_PER_LCORE(unsigned , _socket_id);\n+RTE_DEFINE_PER_LCORE(unsigned int, _lcore_id) = LCORE_ID_ANY;\n+static RTE_DEFINE_PER_LCORE(unsigned int, _socket_id) =\n+\t(unsigned int)SOCKET_ID_ANY;\n+static RTE_DEFINE_PER_LCORE(rte_cpuset_t, _cpuset);\n \n unsigned rte_socket_id(void)\n {\ndiff --git a/lib/librte_eal/freebsd/eal_thread.c b/lib/librte_eal/freebsd/eal_thread.c\nindex b52019782a..40676d9ef5 100644\n--- a/lib/librte_eal/freebsd/eal_thread.c\n+++ b/lib/librte_eal/freebsd/eal_thread.c\n@@ -25,10 +25,6 @@\n #include \"eal_private.h\"\n #include \"eal_thread.h\"\n \n-RTE_DEFINE_PER_LCORE(unsigned, _lcore_id) = LCORE_ID_ANY;\n-RTE_DEFINE_PER_LCORE(unsigned, _socket_id) = (unsigned)SOCKET_ID_ANY;\n-RTE_DEFINE_PER_LCORE(rte_cpuset_t, _cpuset);\n-\n /*\n  * Send a message to a slave lcore identified by slave_id to call a\n  * function f with argument arg. Once the execution is done, the\ndiff --git a/lib/librte_eal/include/rte_lcore.h b/lib/librte_eal/include/rte_lcore.h\nindex 339046bc86..5c1d1926e9 100644\n--- a/lib/librte_eal/include/rte_lcore.h\n+++ b/lib/librte_eal/include/rte_lcore.h\n@@ -23,7 +23,6 @@ extern \"C\" {\n #define LCORE_ID_ANY     UINT32_MAX       /**< Any lcore. */\n \n RTE_DECLARE_PER_LCORE(unsigned, _lcore_id);  /**< Per thread \"lcore id\". */\n-RTE_DECLARE_PER_LCORE(rte_cpuset_t, _cpuset); /**< Per thread \"cpuset\". */\n \n /**\n  * Get a lcore's role.\ndiff --git a/lib/librte_eal/linux/eal_thread.c b/lib/librte_eal/linux/eal_thread.c\nindex cd9d6e0ebf..a52ebef3a4 100644\n--- a/lib/librte_eal/linux/eal_thread.c\n+++ b/lib/librte_eal/linux/eal_thread.c\n@@ -25,10 +25,6 @@\n #include \"eal_private.h\"\n #include \"eal_thread.h\"\n \n-RTE_DEFINE_PER_LCORE(unsigned, _lcore_id) = LCORE_ID_ANY;\n-RTE_DEFINE_PER_LCORE(unsigned, _socket_id) = (unsigned)SOCKET_ID_ANY;\n-RTE_DEFINE_PER_LCORE(rte_cpuset_t, _cpuset);\n-\n /*\n  * Send a message to a slave lcore identified by slave_id to call a\n  * function f with argument arg. Once the execution is done, the\ndiff --git a/lib/librte_eal/windows/eal_thread.c b/lib/librte_eal/windows/eal_thread.c\nindex 3dd56519c9..f12a2ec6ad 100644\n--- a/lib/librte_eal/windows/eal_thread.c\n+++ b/lib/librte_eal/windows/eal_thread.c\n@@ -16,10 +16,6 @@\n #include \"eal_private.h\"\n #include \"eal_windows.h\"\n \n-RTE_DEFINE_PER_LCORE(unsigned int, _lcore_id) = LCORE_ID_ANY;\n-RTE_DEFINE_PER_LCORE(unsigned int, _socket_id) = (unsigned int)SOCKET_ID_ANY;\n-RTE_DEFINE_PER_LCORE(rte_cpuset_t, _cpuset);\n-\n /*\n  * Send a message to a slave lcore identified by slave_id to call a\n  * function f with argument arg. Once the execution is done, the\n",
    "prefixes": [
        "v6",
        "01/10"
    ]
}