Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/48654/?format=api
http://patches.dpdk.org/api/patches/48654/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/ad34ed2862715a268ecf7d0a2909300617fae91b.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": "<ad34ed2862715a268ecf7d0a2909300617fae91b.1544550999.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/ad34ed2862715a268ecf7d0a2909300617fae91b.1544550999.git.anatoly.burakov@intel.com", "date": "2018-12-11T17:57:10", "name": "[2/6] common: add bsf64 function similar to existing bsf32", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "49eea8d6378d45dc8e66b887c48488bd3bd41f12", "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/ad34ed2862715a268ecf7d0a2909300617fae91b.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/48654/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/48654/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 1F4651B113;\n\tTue, 11 Dec 2018 18:57:39 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 9CC85683E\n\tfor <dev@dpdk.org>; Tue, 11 Dec 2018 18:57:32 +0100 (CET)", "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Dec 2018 09:57:31 -0800", "from irvmail001.ir.intel.com ([163.33.26.43])\n\tby orsmga007.jf.intel.com with ESMTP; 11 Dec 2018 09:57:29 -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\twBBHvTN1014321; 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 wBBHvTSa024648;\n\tTue, 11 Dec 2018 17:57:29 GMT", "(from aburakov@localhost)\n\tby sivswdev05.ir.intel.com with LOCAL id wBBHvS8K024644;\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=\"97933895\"", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "John McNamara <john.mcnamara@intel.com>,\n\tMarko Kovacevic <marko.kovacevic@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:10 +0000", "Message-Id": "<ad34ed2862715a268ecf7d0a2909300617fae91b.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 2/6] common: add bsf64 function similar to\n\texisting bsf32", "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": "Implement a new rte_bsf64 function that is following convention\nset by existing rte_bsf32 function. Also, document the change in\nrelease notes.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n doc/guides/rel_notes/release_19_02.rst | 4 +++-\n lib/librte_eal/common/include/rte_common.h | 19 ++++++++++++++++++-\n 2 files changed, 21 insertions(+), 2 deletions(-)", "diff": "diff --git a/doc/guides/rel_notes/release_19_02.rst b/doc/guides/rel_notes/release_19_02.rst\nindex ff81357d4..1d56ad43e 100644\n--- a/doc/guides/rel_notes/release_19_02.rst\n+++ b/doc/guides/rel_notes/release_19_02.rst\n@@ -85,7 +85,9 @@ API Changes\n \n \n * eal: function ``rte_bsf64`` in ``rte_bitmap.h`` has been renamed to\n- ``rte_bsf64_safe`` and moved to ``rte_common.h``.\n+ ``rte_bsf64_safe`` and moved to ``rte_common.h``. A new ``rte_bsf64`` function\n+ has been added in ``rte_common.h`` that follows convention set by existing\n+ ``rte_bsf32`` function.\n \n \n ABI Changes\ndiff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h\nindex 66cdf60b2..2735dcca7 100644\n--- a/lib/librte_eal/common/include/rte_common.h\n+++ b/lib/librte_eal/common/include/rte_common.h\n@@ -482,6 +482,23 @@ rte_fls_u32(uint32_t x)\n \treturn (x == 0) ? 0 : 32 - __builtin_clz(x);\n }\n \n+/**\n+ * Searches the input parameter for the least significant set bit\n+ * (starting from zero).\n+ * If a least significant 1 bit is found, its bit index is returned.\n+ * If the content of the input parameter is zero, then the content of the return\n+ * value is undefined.\n+ * @param v\n+ * input parameter, should not be zero.\n+ * @return\n+ * least significant set bit in the input parameter.\n+ */\n+static inline int\n+rte_bsf64(uint64_t v)\n+{\n+\treturn (uint32_t)__builtin_ctzll(v);\n+}\n+\n /**\n * Searches the input parameter for the least significant set bit\n * (starting from zero). Safe version (checks for input parameter being zero).\n@@ -502,7 +519,7 @@ rte_bsf64_safe(uint64_t v, uint32_t *pos)\n \tif (v == 0)\n \t\treturn 0;\n \n-\t*pos = __builtin_ctzll(v);\n+\t*pos = rte_bsf64(v);\n \treturn 1;\n }\n \n", "prefixes": [ "2/6" ] }{ "id": 48654, "url": "