Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/48085/?format=api
http://patches.dpdk.org/api/patches/48085/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/0e6285d5999fc0bdecf2f764085ca287d44274ce.1542212598.git.anatoly.burakov@intel.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": "<0e6285d5999fc0bdecf2f764085ca287d44274ce.1542212598.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/0e6285d5999fc0bdecf2f764085ca287d44274ce.1542212598.git.anatoly.burakov@intel.com", "date": "2018-11-14T16:30:22", "name": "[v2,4/5] memalloc: use library implementation of 64-bit log2", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "5982d791167c1562dee850a60986fa6bd22036da", "submitter": { "id": 4, "url": "http://patches.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@intel.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/0e6285d5999fc0bdecf2f764085ca287d44274ce.1542212598.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 2423, "url": "http://patches.dpdk.org/api/series/2423/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2423", "date": "2018-11-14T16:30:19", "name": "[v2,1/5] bitmap: remove useless code", "version": 2, "mbox": "http://patches.dpdk.org/series/2423/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/48085/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/48085/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 B33771B1F6;\n\tWed, 14 Nov 2018 17:30:40 +0100 (CET)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 17C9A1B163\n\tfor <dev@dpdk.org>; Wed, 14 Nov 2018 17:30:29 +0100 (CET)", "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t14 Nov 2018 08:30:29 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga005.jf.intel.com with ESMTP; 14 Nov 2018 08:30:26 -0800", "from sivswdev01.ir.intel.com (sivswdev01.ir.intel.com\n\t[10.237.217.45])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\twAEGUQK3029217; Wed, 14 Nov 2018 16:30:26 GMT", "from sivswdev01.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev01.ir.intel.com with ESMTP id wAEGUPxP007173;\n\tWed, 14 Nov 2018 16:30:25 GMT", "(from aburakov@localhost)\n\tby sivswdev01.ir.intel.com with LOCAL id wAEGUP6w007167;\n\tWed, 14 Nov 2018 16:30:25 GMT" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.56,233,1539673200\"; d=\"scan'208\";a=\"273971218\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "cristian.dumitrescu@intel.com, thomas@monjalon.net,\n\tbruce.richardson@intel.com, ferruh.yigit@intel.com,\n\tjasvinder.singh@intel.com", "Date": "Wed, 14 Nov 2018 16:30:22 +0000", "Message-Id": "<0e6285d5999fc0bdecf2f764085ca287d44274ce.1542212598.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": [ "<fbc68e4e563904b7758950cc50ecf0f753f4ec53.1542212598.git.anatoly.burakov@intel.com>", "<9eb826f80f19422153d5a0ab611fb467a94eded0.1542197039.git.anatoly.burakov@intel.com>" ], "References": [ "<fbc68e4e563904b7758950cc50ecf0f753f4ec53.1542212598.git.anatoly.burakov@intel.com>", "<9eb826f80f19422153d5a0ab611fb467a94eded0.1542197039.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [PATCH v2 4/5] memalloc: use library implementation of\n\t64-bit log2", "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": "Remove duplicated code and use library version of 64-bit log2.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/librte_eal/linuxapp/eal/eal_memalloc.c | 17 +----------------\n 1 file changed, 1 insertion(+), 16 deletions(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal_memalloc.c b/lib/librte_eal/linuxapp/eal/eal_memalloc.c\nindex 48b9c7360..7f9f0d027 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_memalloc.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_memalloc.c\n@@ -208,28 +208,13 @@ get_file_size(int fd)\n \treturn st.st_size;\n }\n \n-static inline uint32_t\n-bsf64(uint64_t v)\n-{\n-\treturn (uint32_t)__builtin_ctzll(v);\n-}\n-\n-static inline uint32_t\n-log2_u64(uint64_t v)\n-{\n-\tif (v == 0)\n-\t\treturn 0;\n-\tv = rte_align64pow2(v);\n-\treturn bsf64(v);\n-}\n-\n static int\n pagesz_flags(uint64_t page_sz)\n {\n \t/* as per mmap() manpage, all page sizes are log2 of page size\n \t * shifted by MAP_HUGE_SHIFT\n \t */\n-\tint log2 = log2_u64(page_sz);\n+\tint log2 = rte_log2_u64(page_sz);\n \treturn log2 << RTE_MAP_HUGE_SHIFT;\n }\n \n", "prefixes": [ "v2", "4/5" ] }{ "id": 48085, "url": "