Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/137453/?format=api
http://patches.dpdk.org/api/patches/137453/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1709146076-22254-3-git-send-email-roretzla@linux.microsoft.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": "<1709146076-22254-3-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1709146076-22254-3-git-send-email-roretzla@linux.microsoft.com", "date": "2024-02-28T18:47:55", "name": "[v2,2/3] lpm: use rte macro instead of GCC attribute", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "c271134fd4acc2a91d80bda0097c4e003848d9ae", "submitter": { "id": 2077, "url": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "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/1709146076-22254-3-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31280, "url": "http://patches.dpdk.org/api/series/31280/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=31280", "date": "2024-02-28T18:47:55", "name": "use rte macros instead of GCC __attribute", "version": 2, "mbox": "http://patches.dpdk.org/series/31280/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/137453/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/137453/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 58B6943C28;\n\tWed, 28 Feb 2024 19:48:00 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E863C40EE4;\n\tWed, 28 Feb 2024 19:47:59 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 53D4040EE4\n for <dev@dpdk.org>; Wed, 28 Feb 2024 19:47:58 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 98EF020B74C2; Wed, 28 Feb 2024 10:47:57 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 98EF020B74C2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1709146077;\n bh=Aj1hQ+blIKtPnedyXJfZ4sQgonV9tyDCiL0Xvb9pT5E=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=SsWs4P37lTbwc9PD3M6wTPlza7gppRjjJDHqjud37pGz2JtImWVIYWQusD5Hj3Bsf\n GOUXOYhGnqUzG6GIDoLvHPTmdjzHF9k0NkFHAOgQ7yLQWb0abzatd5PH8rYAuVXxqv\n 5qnp6IsMYlHgpfr/M2L74HZ/R4Vo5/gXsQURYUds=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,\n Vladimir Medvedkin <vladimir.medvedkin@intel.com>,\n mb@smartsharesystems.com, Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v2 2/3] lpm: use rte macro instead of GCC attribute", "Date": "Wed, 28 Feb 2024 10:47:55 -0800", "Message-Id": "<1709146076-22254-3-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1709146076-22254-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1709075273-6885-1-git-send-email-roretzla@linux.microsoft.com>\n <1709146076-22254-1-git-send-email-roretzla@linux.microsoft.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "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" }, "content": "Use newly added __rte_pure macro from rte_common.h instead of directly\nusing __attribute__((pure)).\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\nReviewed-by: Morten Brørup <mb@smartsharesystems.com>\n---\n lib/lpm/rte_lpm.c | 4 ++--\n lib/lpm/rte_lpm6.c | 2 +-\n 2 files changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/lpm/rte_lpm.c b/lib/lpm/rte_lpm.c\nindex 9633d63..a5c9e7c 100644\n--- a/lib/lpm/rte_lpm.c\n+++ b/lib/lpm/rte_lpm.c\n@@ -85,7 +85,7 @@ struct __rte_lpm {\n * depth (IN)\t\t: range = 1 - 32\n * mask (OUT)\t\t: 32bit mask\n */\n-static uint32_t __attribute__((pure))\n+static uint32_t __rte_pure\n depth_to_mask(uint8_t depth)\n {\n \tVERIFY_DEPTH(depth);\n@@ -99,7 +99,7 @@ static uint32_t __attribute__((pure))\n /*\n * Converts given depth value to its corresponding range value.\n */\n-static uint32_t __attribute__((pure))\n+static uint32_t __rte_pure\n depth_to_range(uint8_t depth)\n {\n \tVERIFY_DEPTH(depth);\ndiff --git a/lib/lpm/rte_lpm6.c b/lib/lpm/rte_lpm6.c\nindex 271bc48..2bdd540 100644\n--- a/lib/lpm/rte_lpm6.c\n+++ b/lib/lpm/rte_lpm6.c\n@@ -1127,7 +1127,7 @@ struct rte_lpm6 *\n * Convert a depth to a one byte long mask\n * Example: 4 will be converted to 0xF0\n */\n-static uint8_t __attribute__((pure))\n+static uint8_t __rte_pure\n depth_to_mask_1b(uint8_t depth)\n {\n \t/* To calculate a mask start with a 1 on the left hand side and right\n", "prefixes": [ "v2", "2/3" ] }{ "id": 137453, "url": "