Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/138068/?format=api
https://patches.dpdk.org/api/patches/138068/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1709763287-10713-3-git-send-email-roretzla@linux.microsoft.com/", "project": { "id": 1, "url": "https://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": "<1709763287-10713-3-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1709763287-10713-3-git-send-email-roretzla@linux.microsoft.com", "date": "2024-03-06T22:14:44", "name": "[v3,2/5] lpm: use rte macro instead of GCC attribute", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c271134fd4acc2a91d80bda0097c4e003848d9ae", "submitter": { "id": 2077, "url": "https://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1709763287-10713-3-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 31407, "url": "https://patches.dpdk.org/api/series/31407/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=31407", "date": "2024-03-06T22:14:42", "name": "use rte macros instead of GCC __attribute", "version": 3, "mbox": "https://patches.dpdk.org/series/31407/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/138068/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/138068/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 08C3243C62;\n\tWed, 6 Mar 2024 23:15:07 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1B33E42ED8;\n\tWed, 6 Mar 2024 23:14:56 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 8193342E2A\n for <dev@dpdk.org>; Wed, 6 Mar 2024 23:14:49 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id AB20D20B74C2; Wed, 6 Mar 2024 14:14:48 -0800 (PST)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com AB20D20B74C2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1709763288;\n bh=jV1+Nf6v8KlLnkO5OyqNl2l2GkiGGSyeaoY/QFSmUz0=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=aWsiIx3SAvvguhtOJXXQJNhfLJJQ1wOjbHRn1EZhlQlM3pogUYmVb+hgd+v5042oL\n Df7tIXT/NT/5qFpbBiwzM0bwM3BTxoP5WkqxLC5nxfnC6PWAkOW7E0TpPoPQcLbzQR\n CnRHSVx7ZYW/5Y/8mKuxtSsPKduXLW/pp+hNL808=", "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, david.marchand@redhat.com,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v3 2/5] lpm: use rte macro instead of GCC attribute", "Date": "Wed, 6 Mar 2024 14:14:44 -0800", "Message-Id": "<1709763287-10713-3-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1709763287-10713-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1709075273-6885-1-git-send-email-roretzla@linux.microsoft.com>\n <1709763287-10713-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 46d8f71..42828a1 100644\n--- a/lib/lpm/rte_lpm6.c\n+++ b/lib/lpm/rte_lpm6.c\n@@ -1128,7 +1128,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": [ "v3", "2/5" ] }{ "id": 138068, "url": "