Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85588/?format=api
https://patches.dpdk.org/api/patches/85588/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201221065150.1600719-5-zhirun.yan@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": "<20201221065150.1600719-5-zhirun.yan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201221065150.1600719-5-zhirun.yan@intel.com", "date": "2020-12-21T06:51:49", "name": "[v1,4/5] net/ice: add outer input set mask check", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "473d1def6c5a861ee952311377db8e4845e94538", "submitter": { "id": 1154, "url": "https://patches.dpdk.org/api/people/1154/?format=api", "name": "Yan, Zhirun", "email": "zhirun.yan@intel.com" }, "delegate": { "id": 1540, "url": "https://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20201221065150.1600719-5-zhirun.yan@intel.com/mbox/", "series": [ { "id": 14399, "url": "https://patches.dpdk.org/api/series/14399/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=14399", "date": "2020-12-21T06:51:45", "name": "Refactor FDIR pattern parser", "version": 1, "mbox": "https://patches.dpdk.org/series/14399/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/85588/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/85588/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 2EE53A09EF;\n\tMon, 21 Dec 2020 07:57:40 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8FEFACCA7;\n\tMon, 21 Dec 2020 07:56:23 +0100 (CET)", "from mga06.intel.com (mga06.intel.com [134.134.136.31])\n by dpdk.org (Postfix) with ESMTP id 0CF75CC43\n for <dev@dpdk.org>; Mon, 21 Dec 2020 07:56:18 +0100 (CET)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Dec 2020 22:56:18 -0800", "from dpdk-zhirun-dev.sh.intel.com ([10.67.118.176])\n by fmsmga001.fm.intel.com with ESMTP; 20 Dec 2020 22:56:16 -0800" ], "IronPort-SDR": [ "\n BMb9btgvRtaPmctUAWU/21ZC8olnPYs/yTfUvh61+UOID46ezjQMbTNluvW86RjKsYTvCdE7ru\n Nwul2rcEtKjg==", "\n pK8MeE9omvTRJ80kDCnI3x1satu+krGtSza0NFR+TeFXLHfk+FgP6UjC3w4dP/2OyTFTECSmYE\n ezjRnJWS4gYQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9841\"; a=\"237252419\"", "E=Sophos;i=\"5.78,436,1599548400\"; d=\"scan'208\";a=\"237252419\"", "E=Sophos;i=\"5.78,436,1599548400\"; d=\"scan'208\";a=\"456007074\"" ], "X-ExtLoop1": "1", "From": "Zhirun Yan <zhirun.yan@intel.com>", "To": "dev@dpdk.org, qi.z.zhang@intel.com, yahui.cao@intel.com,\n xiao.w.wang@intel.com, junfeng.guo@intel.com", "Cc": "simei.su@intel.com, ting.xu@intel.com, yuying.zhang@intel.com,\n Zhirun Yan <zhirun.yan@intel.com>", "Date": "Mon, 21 Dec 2020 14:51:49 +0800", "Message-Id": "<20201221065150.1600719-5-zhirun.yan@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20201221065150.1600719-1-zhirun.yan@intel.com>", "References": "<20201221065150.1600719-1-zhirun.yan@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v1 4/5] net/ice: add outer input set mask 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 <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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Distinguish input set mask for inner/outer. Add outer input set\nmask check.\n\nSigned-off-by: Zhirun Yan <zhirun.yan@intel.com>\n---\n drivers/net/ice/ice_fdir_filter.c | 3 ++-\n drivers/net/ice/ice_generic_flow.c | 2 ++\n 2 files changed, 4 insertions(+), 1 deletion(-)", "diff": "diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c\nindex 76e0a8df38..2d2b261368 100644\n--- a/drivers/net/ice/ice_fdir_filter.c\n+++ b/drivers/net/ice/ice_fdir_filter.c\n@@ -2020,7 +2020,8 @@ ice_fdir_parse(struct ice_adapter *ad,\n \tif (ret)\n \t\tgoto error;\n \tinput_set = filter->input_set | filter->outer_input_set;\n-\tif (!input_set || input_set & ~item->input_set_mask) {\n+\tif (!input_set || filter->input_set & ~item->input_set_mask ||\n+\t filter->outer_input_set & ~item->input_set_mask_f) {\n \t\trte_flow_error_set(error, EINVAL,\n \t\t\t\t RTE_FLOW_ERROR_TYPE_ITEM_SPEC,\n \t\t\t\t pattern,\ndiff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/ice/ice_generic_flow.c\nindex 1429cbc3b6..6c20b070c7 100644\n--- a/drivers/net/ice/ice_generic_flow.c\n+++ b/drivers/net/ice/ice_generic_flow.c\n@@ -2088,6 +2088,8 @@ ice_search_pattern_match_item(const struct rte_flow_item pattern[],\n \t\t\t\t\titems)) {\n \t\t\tpattern_match_item->input_set_mask =\n \t\t\t\tarray[i].input_set_mask;\n+\t\t\tpattern_match_item->input_set_mask_f =\n+\t\t\t\tarray[i].input_set_mask_f;\n \t\t\tpattern_match_item->pattern_list =\n \t\t\t\tarray[i].pattern_list;\n \t\t\tpattern_match_item->meta = array[i].meta;\n", "prefixes": [ "v1", "4/5" ] }{ "id": 85588, "url": "