Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/52610/?format=api
http://patches.dpdk.org/api/patches/52610/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190410171603.8979-2-stephen@networkplumber.org/", "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": "<20190410171603.8979-2-stephen@networkplumber.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20190410171603.8979-2-stephen@networkplumber.org", "date": "2019-04-10T17:15:59", "name": "[v2,1/5] eal: use unsigned int in rte_lcore.h functions", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4226ab14157ee077a4f5fce83092eac335cb69a4", "submitter": { "id": 27, "url": "http://patches.dpdk.org/api/people/27/?format=api", "name": "Stephen Hemminger", "email": "stephen@networkplumber.org" }, "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/20190410171603.8979-2-stephen@networkplumber.org/mbox/", "series": [ { "id": 4248, "url": "http://patches.dpdk.org/api/series/4248/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4248", "date": "2019-04-10T17:15:58", "name": "make lcore_config internal", "version": 2, "mbox": "http://patches.dpdk.org/series/4248/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/52610/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/52610/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3FE2F1B20D;\n\tWed, 10 Apr 2019 19:16:13 +0200 (CEST)", "from mail-pg1-f195.google.com (mail-pg1-f195.google.com\n\t[209.85.215.195]) by dpdk.org (Postfix) with ESMTP id 0808C1B142\n\tfor <dev@dpdk.org>; Wed, 10 Apr 2019 19:16:09 +0200 (CEST)", "by mail-pg1-f195.google.com with SMTP id z9so1926559pgu.10\n\tfor <dev@dpdk.org>; Wed, 10 Apr 2019 10:16:08 -0700 (PDT)", "from shemminger-XPS-13-9360.lan (204-195-22-127.wavecable.com.\n\t[204.195.22.127]) by smtp.gmail.com with ESMTPSA id\n\td25sm48995244pfn.154.2019.04.10.10.16.06\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 10 Apr 2019 10:16:06 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=mp6C4lmKHxRwWTazVhkNgq2X1wcsA6ywl91M4N1beSc=;\n\tb=Y8JEBg9PQFVkjHYPUkoE4ig8Zaw17KUl1Eg7NgYlE2VZ7eMhcYmSwZcZnZ8LTdSYHa\n\tprpdXJPs/8kRw3imA+qZD0GHfoAfFfPUAuY66UnfohlosyKGZKRn6SJOEpftfmc1LbkY\n\tnCYVCeiLUrdOJGo5r0PXNb205PBKSxwEBiq3CcqXr8TR76Z55Q0kM3Khqmqijk9X9lH9\n\t9Gs9A06pechSvIIrX5tzBLPOUV8bYpvtF1Abuc7Vx7W2nx7I456V4kjK/IBb9tsuzcIf\n\tkwyLDvOv6LCB1RRXqK8zVYjL8oop/8BMWIreVU+/rCWAQp0HAghQrf/cJyxLEbkA8vwu\n\tzPgg==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=mp6C4lmKHxRwWTazVhkNgq2X1wcsA6ywl91M4N1beSc=;\n\tb=IeHg76AciVEXsPtn9eWGVcnP3i0dbMCzRev46NkYzuBs4bHuVl8zWwxOvL2SgVyMo/\n\thuFs7LhhC7RXoOh4onWJ3gyMIS/+u3ceu7Qya5zh4vFwAyj21JsH8+ptn4K45pyDgvb8\n\tHimctzKxX/FfjHYzQmb1VeJldKF7OFB9YuCGQoYjmp3Wj0tlHCU9R4vxaYCJFOMEKQ00\n\tUMJD75gQeJtIKbWtNmIq/1xYJx40cfQNNLkOU9dykJgGW/NGdsazU3WbEm/WeOC9DaTI\n\tnWyT/rTfNwoPJJVBVcp1U/3nAKhvFzLM5tKAOjmlP9jKB7aSmetGCEoRABxmIeBQswqz\n\tyGLQ==", "X-Gm-Message-State": "APjAAAWozLlTDDVNRDYSQS6lIp+IIg47wuO6HxxppsWTX15IjTQBoy4O\n\tlHB2hrhJjY4IfZbJ1KMJkQcpFwvyGZo=", "X-Google-Smtp-Source": "APXvYqxZVFVhlWZm1SE5Risev5we8ig48yZ6YA7SUk3wA3GILYIXldZI/37naUL4YKIPSobOsXR32Q==", "X-Received": "by 2002:a65:5286:: with SMTP id y6mr41613790pgp.79.1554916567774;\n\tWed, 10 Apr 2019 10:16:07 -0700 (PDT)", "From": "Stephen Hemminger <stephen@networkplumber.org>", "To": "dev@dpdk.org", "Cc": "Stephen Hemminger <stephen@networkplumber.org>", "Date": "Wed, 10 Apr 2019 10:15:59 -0700", "Message-Id": "<20190410171603.8979-2-stephen@networkplumber.org>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20190410171603.8979-1-stephen@networkplumber.org>", "References": "<20190408182510.16078-1-stephen@networkplumber.org>\n\t<20190410171603.8979-1-stephen@networkplumber.org>", "Subject": "[dpdk-dev] [PATCH v2 1/5] eal: use unsigned int in rte_lcore.h\n\tfunctions", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Purely cosmetic change, use unsigned int instead of unsigned alone.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n lib/librte_eal/common/include/rte_lcore.h | 12 ++++++------\n 1 file changed, 6 insertions(+), 6 deletions(-)", "diff": "diff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h\nindex dea17f500065..959ef9ece4b2 100644\n--- a/lib/librte_eal/common/include/rte_lcore.h\n+++ b/lib/librte_eal/common/include/rte_lcore.h\n@@ -137,7 +137,7 @@ rte_lcore_index(int lcore_id)\n * @return\n * the ID of current lcoreid's physical socket\n */\n-unsigned rte_socket_id(void);\n+unsigned int rte_socket_id(void);\n \n /**\n * Return number of physical sockets detected on the system.\n@@ -177,8 +177,8 @@ rte_socket_id_by_idx(unsigned int idx);\n * @return\n * the ID of lcoreid's physical socket\n */\n-static inline unsigned\n-rte_lcore_to_socket_id(unsigned lcore_id)\n+static inline unsigned int\n+rte_lcore_to_socket_id(unsigned int lcore_id)\n {\n \treturn lcore_config[lcore_id].socket_id;\n }\n@@ -193,7 +193,7 @@ rte_lcore_to_socket_id(unsigned lcore_id)\n * True if the given lcore is enabled; false otherwise.\n */\n static inline int\n-rte_lcore_is_enabled(unsigned lcore_id)\n+rte_lcore_is_enabled(unsigned int lcore_id)\n {\n \tstruct rte_config *cfg = rte_eal_get_configuration();\n \tif (lcore_id >= RTE_MAX_LCORE)\n@@ -214,8 +214,8 @@ rte_lcore_is_enabled(unsigned lcore_id)\n * @return\n * The next lcore_id or RTE_MAX_LCORE if not found.\n */\n-static inline unsigned\n-rte_get_next_lcore(unsigned i, int skip_master, int wrap)\n+static inline unsigned int\n+rte_get_next_lcore(unsigned int i, int skip_master, int wrap)\n {\n \ti++;\n \tif (wrap)\n", "prefixes": [ "v2", "1/5" ] }{ "id": 52610, "url": "