Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/50340/?format=api
https://patches.dpdk.org/api/patches/50340/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1550254030-216363-1-git-send-email-paul.m.stillwell.jr@intel.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": "<1550254030-216363-1-git-send-email-paul.m.stillwell.jr@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1550254030-216363-1-git-send-email-paul.m.stillwell.jr@intel.com", "date": "2019-02-15T18:07:10", "name": "[v2] net/ice: faster bit check", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "acc538a89999adddd16059173983ff47bf3284a2", "submitter": { "id": 1187, "url": "https://patches.dpdk.org/api/people/1187/?format=api", "name": "Stillwell Jr, Paul M", "email": "paul.m.stillwell.jr@intel.com" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1550254030-216363-1-git-send-email-paul.m.stillwell.jr@intel.com/mbox/", "series": [ { "id": 3468, "url": "https://patches.dpdk.org/api/series/3468/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=3468", "date": "2019-02-15T18:07:10", "name": "[v2] net/ice: faster bit check", "version": 2, "mbox": "https://patches.dpdk.org/series/3468/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/50340/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/50340/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 767AA1B4C8;\n\tFri, 15 Feb 2019 19:07:18 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id E4A961B4B7\n\tfor <dev@dpdk.org>; Fri, 15 Feb 2019 19:07:16 +0100 (CET)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t15 Feb 2019 10:07:16 -0800", "from dpdk-srv1.jf.intel.com ([10.166.17.53])\n\tby fmsmga002.fm.intel.com with ESMTP; 15 Feb 2019 10:07:15 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.58,373,1544515200\"; d=\"scan'208\";a=\"143823047\"", "From": "Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>", "To": "qi.z.zhang@intel.com", "Cc": "dev@dpdk.org, Jesse Brandeburg <jesse.brandeburg@intel.com>,\n\tPaul M Stillwell Jr <paul.m.stillwell.jr@intel.com>", "Date": "Fri, 15 Feb 2019 10:07:10 -0800", "Message-Id": "<1550254030-216363-1-git-send-email-paul.m.stillwell.jr@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "Subject": "[dpdk-dev] [PATCH v2] net/ice: faster bit check", "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": "From: Jesse Brandeburg <jesse.brandeburg@intel.com>\n\nImplement a slightly faster bit check, used for checking\ndescriptors in the hot path.\n\nSigned-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>\nSigned-off-by: Paul M Stillwell Jr <paul.m.stillwell.jr@intel.com>\n---\nv2: fixed checkpatch issues\n---\n drivers/net/ice/ice_rxtx.c | 15 +++++++--------\n 1 file changed, 7 insertions(+), 8 deletions(-)", "diff": "diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c\nindex c794ee8..7c82931 100644\n--- a/drivers/net/ice/ice_rxtx.c\n+++ b/drivers/net/ice/ice_rxtx.c\n@@ -955,14 +955,13 @@\n static inline uint64_t\n ice_rxd_status_to_pkt_flags(uint64_t qword)\n {\n-\tuint64_t flags;\n-\n-\t/* Check if RSS_HASH */\n-\tflags = (((qword >> ICE_RX_DESC_STATUS_FLTSTAT_S) &\n-\t\t ICE_RX_DESC_FLTSTAT_RSS_HASH) ==\n-\t\t ICE_RX_DESC_FLTSTAT_RSS_HASH) ? PKT_RX_RSS_HASH : 0;\n-\n-\treturn flags;\n+\tstatic const uint64_t bitcheck =\n+\t\t(ICE_RX_DESC_FLTSTAT_RSS_HASH << ICE_RX_DESC_STATUS_FLTSTAT_S);\n+ \t/* Check if RSS_HASH */\n+\tif ((qword & bitcheck) == bitcheck)\n+\t\treturn PKT_RX_RSS_HASH;\n+ \n+\treturn 0;\n }\n \n /* Rx L3/L4 checksum */\n", "prefixes": [ "v2" ] }{ "id": 50340, "url": "