Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/68109/?format=api
http://patches.dpdk.org/api/patches/68109/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200410004157.3032-2-wei.zhao1@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": "<20200410004157.3032-2-wei.zhao1@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200410004157.3032-2-wei.zhao1@intel.com", "date": "2020-04-10T00:41:55", "name": "[1/3] net/ice/base: check the number of recipe when in chain", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "00b793e92657ba20ac4ff1dd4dcaea50bedaf361", "submitter": { "id": 495, "url": "http://patches.dpdk.org/api/people/495/?format=api", "name": "Zhao1, Wei", "email": "wei.zhao1@intel.com" }, "delegate": { "id": 31221, "url": "http://patches.dpdk.org/api/users/31221/?format=api", "username": "yexl", "first_name": "xiaolong", "last_name": "ye", "email": "xiaolong.ye@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200410004157.3032-2-wei.zhao1@intel.com/mbox/", "series": [ { "id": 9290, "url": "http://patches.dpdk.org/api/series/9290/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=9290", "date": "2020-04-10T00:41:54", "name": "update ice switch base code", "version": 1, "mbox": "http://patches.dpdk.org/series/9290/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/68109/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/68109/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 3F612A0599;\n\tFri, 10 Apr 2020 03:03:49 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 04DE21D423;\n\tFri, 10 Apr 2020 03:03:44 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id AD27C1D41D\n for <dev@dpdk.org>; Fri, 10 Apr 2020 03:03:42 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 09 Apr 2020 18:03:42 -0700", "from unknown (HELO localhost.localdomain.bj.intel.com)\n ([172.16.182.123])\n by orsmga008.jf.intel.com with ESMTP; 09 Apr 2020 18:03:40 -0700" ], "IronPort-SDR": [ "\n 1NGgma3nSyHZck3HtXOs1MzWhb+BQwHVWd10cRYr4gjuQ7fmn/PQ1jRu/jyWdKRZf+ql+q13ht\n pGtJMfpsD5kA==", "\n BeQYsEDo/NpkkzJY4TwB2/T8Mju2Nzl/gjRZ9u3UcX2yrnuIBpjiZfNXEwFM/t3sUUXjJX8MMr\n vr+fKuSit5oA==" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.72,364,1580803200\"; d=\"scan'208\";a=\"259525545\"", "From": "Wei Zhao <wei.zhao1@intel.com>", "To": "dev@dpdk.org", "Cc": "qi.z.zhang@intel.com, nannan.lu@intel.com, yuan.peng@intel.com,\n Wei Zhao <wei.zhao1@intel.com>", "Date": "Fri, 10 Apr 2020 08:41:55 +0800", "Message-Id": "<20200410004157.3032-2-wei.zhao1@intel.com>", "X-Mailer": "git-send-email 2.19.1", "In-Reply-To": "<20200410004157.3032-1-wei.zhao1@intel.com>", "References": "<20200410004157.3032-1-wei.zhao1@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 1/3] net/ice/base: check the number of recipe\n\twhen in chain", "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": "when we add some long switch rule, we need check the\nnumber of final recipe number, if it is large than\nICE_MAX_CHAIN_RECIPE, we should refuse this rule.\nFor example:\n\n\"flow create 0 ingress pattern eth / ipv6\nsrc is CDCD:910A:2222:5498:8475:1111:3900:1536\ndst is CDCD:910A:2222:5498:8475:1111:3900:2022\ntc is 3 / udp dst is 45 / end actions queue index 2 / end\"\n\nThis rule will consum 6 recipe, if it is not refused, it\nwill cause the following code over write of lkup_indx and mask.\n\nLIST_FOR_EACH_ENTRY(entry, &rm->rg_list, ice_recp_grp_entry,\n\t\tl_entry) {\n\tlast_chain_entry->fv_idx[i] = entry->chain_idx;\n\tbuf[recps].content.lkup_indx[i] = entry->chain_idx;\n\tbuf[recps].content.mask[i++] = CPU_TO_LE16(0xFFFF);\n\t..........\n}\n\nSigned-off-by: Wei Zhao <wei.zhao1@intel.com>\n---\n drivers/net/ice/base/ice_switch.c | 3 +++\n 1 file changed, 3 insertions(+)", "diff": "diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex b5aa5abd9..c17219274 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -5352,6 +5352,9 @@ ice_add_sw_recipe(struct ice_hw *hw, struct ice_sw_recipe *rm,\n \t\trm->n_grp_count++;\n \t}\n \n+\tif (rm->n_grp_count > ICE_MAX_CHAIN_RECIPE)\n+\t\treturn ICE_ERR_MAX_LIMIT;\n+\n \ttmp = (struct ice_aqc_recipe_data_elem *)ice_calloc(hw,\n \t\t\t\t\t\t\t ICE_MAX_NUM_RECIPES,\n \t\t\t\t\t\t\t sizeof(*tmp));\n", "prefixes": [ "1/3" ] }{ "id": 68109, "url": "