Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/48656/?format=api
http://patches.dpdk.org/api/patches/48656/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/723491152c80082b01ca2f6fb44cd1cf66968047.1544550999.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": "<723491152c80082b01ca2f6fb44cd1cf66968047.1544550999.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/723491152c80082b01ca2f6fb44cd1cf66968047.1544550999.git.anatoly.burakov@intel.com", "date": "2018-12-11T17:57:13", "name": "[5/6] testpmd: use library implementation of 64-bit log2", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "871bc3c2ed6e03aae62c57b9050d748dcd105bc7", "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/723491152c80082b01ca2f6fb44cd1cf66968047.1544550999.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 2733, "url": "http://patches.dpdk.org/api/series/2733/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=2733", "date": "2018-12-11T17:57:12", "name": "[1/6] bitmap: remove deprecated bsf64 function", "version": 1, "mbox": "http://patches.dpdk.org/series/2733/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/48656/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/48656/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 9F70F1B11F;\n\tTue, 11 Dec 2018 18:57:41 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 5960F6833\n\tfor <dev@dpdk.org>; Tue, 11 Dec 2018 18:57:33 +0100 (CET)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Dec 2018 09:57:32 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby fmsmga008.fm.intel.com with ESMTP; 11 Dec 2018 09:57:30 -0800", "from sivswdev05.ir.intel.com (sivswdev05.ir.intel.com\n\t[10.243.17.64])\n\tby irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id\n\twBBHvTsc014330; Tue, 11 Dec 2018 17:57:29 GMT", "from sivswdev05.ir.intel.com (localhost [127.0.0.1])\n\tby sivswdev05.ir.intel.com with ESMTP id wBBHvTjW024669;\n\tTue, 11 Dec 2018 17:57:29 GMT", "(from aburakov@localhost)\n\tby sivswdev05.ir.intel.com with LOCAL id wBBHvTtV024665;\n\tTue, 11 Dec 2018 17:57:29 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,343,1539673200\"; d=\"scan'208\";a=\"108734005\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "Wenzhuo Lu <wenzhuo.lu@intel.com>, Jingjing Wu <jingjing.wu@intel.com>, \n\tBernard Iremonger <bernard.iremonger@intel.com>, thomas@monjalon.net,\n\tjasvinder.singh@intel.com, cristian.dumitrescu@intel.com,\n\tjerin.jacob@caviumnetworks.com", "Date": "Tue, 11 Dec 2018 17:57:13 +0000", "Message-Id": "<723491152c80082b01ca2f6fb44cd1cf66968047.1544550999.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": [ "<1cf22c82b6ca7561966be674afb8a02add0913b9.1544550999.git.anatoly.burakov@intel.com>", "<1cf22c82b6ca7561966be674afb8a02add0913b9.1544550999.git.anatoly.burakov@intel.com>" ], "References": [ "<1cf22c82b6ca7561966be674afb8a02add0913b9.1544550999.git.anatoly.burakov@intel.com>", "<1cf22c82b6ca7561966be674afb8a02add0913b9.1544550999.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [PATCH 5/6] testpmd: 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 app/test-pmd/testpmd.c | 17 +----------------\n 1 file changed, 1 insertion(+), 16 deletions(-)", "diff": "diff --git a/app/test-pmd/testpmd.c b/app/test-pmd/testpmd.c\nindex 4c75587d0..0c75e123b 100644\n--- a/app/test-pmd/testpmd.c\n+++ b/app/test-pmd/testpmd.c\n@@ -649,28 +649,13 @@ calc_mem_size(uint32_t nb_mbufs, uint32_t mbuf_sz, size_t pgsz, size_t *out)\n \treturn 0;\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 \n \treturn (log2 << HUGE_SHIFT);\n }\n", "prefixes": [ "5/6" ] }{ "id": 48656, "url": "