Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/50339/?format=api
http://patches.dpdk.org/api/patches/50339/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1550253059-168336-1-git-send-email-paul.m.stillwell.jr@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": "<1550253059-168336-1-git-send-email-paul.m.stillwell.jr@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1550253059-168336-1-git-send-email-paul.m.stillwell.jr@intel.com", "date": "2019-02-15T17:50:59", "name": "[1/1] net/ice: faster bit check", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "acc538a89999adddd16059173983ff47bf3284a2", "submitter": { "id": 1187, "url": "http://patches.dpdk.org/api/people/1187/?format=api", "name": "Stillwell Jr, Paul M", "email": "paul.m.stillwell.jr@intel.com" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1550253059-168336-1-git-send-email-paul.m.stillwell.jr@intel.com/mbox/", "series": [ { "id": 3467, "url": "http://patches.dpdk.org/api/series/3467/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=3467", "date": "2019-02-15T17:50:59", "name": "[1/1] net/ice: faster bit check", "version": 1, "mbox": "http://patches.dpdk.org/series/3467/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/50339/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/50339/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 BC35B1B4C5;\n\tFri, 15 Feb 2019 18:51:34 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 07DB11B4BD\n\tfor <dev@dpdk.org>; Fri, 15 Feb 2019 18:51:32 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t15 Feb 2019 09:51:31 -0800", "from dpdk-srv1.jf.intel.com ([10.166.17.53])\n\tby orsmga002.jf.intel.com with ESMTP; 15 Feb 2019 09:51:30 -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=\"134644199\"", "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 09:50:59 -0800", "Message-Id": "<1550253059-168336-1-git-send-email-paul.m.stillwell.jr@intel.com>", "X-Mailer": "git-send-email 1.8.3.1", "Subject": "[dpdk-dev] [PATCH 1/1] 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 descriptors 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---\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": [ "1/1" ] }{ "id": 50339, "url": "