Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115058/?format=api
http://patches.dpdk.org/api/patches/115058/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220815073206.2917968-31-qi.z.zhang@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": "<20220815073206.2917968-31-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220815073206.2917968-31-qi.z.zhang@intel.com", "date": "2022-08-15T07:31:26", "name": "[v2,30/70] net/ice/base: fix bit finding range over ptype bitmap", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "7f7c78c8bf6db2d34f65760826f659c76fac08be", "submitter": { "id": 504, "url": "http://patches.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220815073206.2917968-31-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 24308, "url": "http://patches.dpdk.org/api/series/24308/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24308", "date": "2022-08-15T07:30:56", "name": "ice base code update", "version": 2, "mbox": "http://patches.dpdk.org/series/24308/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/115058/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/115058/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id E58BFA00C3;\n\tMon, 15 Aug 2022 01:25:09 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id BED7B42B73;\n\tMon, 15 Aug 2022 01:23:08 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 4730142B72;\n Mon, 15 Aug 2022 01:23:06 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Aug 2022 16:23:05 -0700", "from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4])\n by orsmga008.jf.intel.com with ESMTP; 14 Aug 2022 16:23:04 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1660519386; x=1692055386;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=xRmhmu7KrFzUqTlG1+C7qRO+UP0UQlIll5tShXE0muc=;\n b=QXaN581i2e9yLD3v89NeAbfv8NVj9xCOV86inNpIYC5eZI1vJQOLygzZ\n puRcrCjHDMV7NubM/kQEP82cumuXm0WSsIlaaEirMN3jZStTaqIcTTNs6\n kQWu2i3NSrPtBMdLVc5LSuloXjlPNBKtJ/d13Vg573/0KKFTmX28+ThdF\n eHRygTOcAl3xjC2yAmaMpByOrysMRrQFtfLNQCLDjatgOTThOAKdAj9y2\n Mg8VU2AAJUrPdoXIuUBhZrcO4dwFpRATAgDySS9CgSQcnCL8R0LHWBJGe\n ptEwB5GpCI1CSdpUnwOwI4HFWQkrHTqicqtSM+yYxFv9/upO9Ye4ZGOKp w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10439\"; a=\"291857967\"", "E=Sophos;i=\"5.93,237,1654585200\"; d=\"scan'208\";a=\"291857967\"", "E=Sophos;i=\"5.93,237,1654585200\"; d=\"scan'208\";a=\"635283158\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>, stable@dpdk.org,\n Junfeng Guo <junfeng.guo@intel.com>", "Subject": "[PATCH v2 30/70] net/ice/base: fix bit finding range over ptype\n bitmap", "Date": "Mon, 15 Aug 2022 03:31:26 -0400", "Message-Id": "<20220815073206.2917968-31-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.31.1", "In-Reply-To": "<20220815073206.2917968-1-qi.z.zhang@intel.com>", "References": "<20220815071306.2910599-1-qi.z.zhang@intel.com>\n <20220815073206.2917968-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <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 <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org" }, "content": "The 2nd argument to function ice_find_first_bit is the bitmap size,\n(in bits) not a mask. Thus, use of UINT16_MAX or 0xFFFF will allow a\npotential run off the end of the ptype array.\nAlso, the ptype bitmap (i.e., prof->ptypes) is declared with size\nICE_FLOW_PTYPE_MAX, thus finding the bits within this bitmap should\nnot exceed this bound.\n\nFixes: 8ebb93942b2c (\"net/ice/base: add function to set HW profile for raw flow\")\nCc: stable@dpdk.org\n\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_flow.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c\nindex 54181044f1..b196e51276 100644\n--- a/drivers/net/ice/base/ice_flow.c\n+++ b/drivers/net/ice/base/ice_flow.c\n@@ -2561,7 +2561,7 @@ ice_flow_set_hw_prof(struct ice_hw *hw, u16 dest_vsi_handle,\n \t\t u16 fdir_vsi_handle, struct ice_parser_profile *prof,\n \t\t enum ice_block blk)\n {\n-\tint id = ice_find_first_bit(prof->ptypes, UINT16_MAX);\n+\tint id = ice_find_first_bit(prof->ptypes, ICE_FLOW_PTYPE_MAX);\n \tstruct ice_flow_prof_params *params;\n \tu8 fv_words = hw->blk[blk].es.fvw;\n \tenum ice_status status;\n", "prefixes": [ "v2", "30/70" ] }{ "id": 115058, "url": "