Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/73416/?format=api
https://patches.dpdk.org/api/patches/73416/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200707094048.17690-2-wei.zhao1@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": "<20200707094048.17690-2-wei.zhao1@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200707094048.17690-2-wei.zhao1@intel.com", "date": "2020-07-07T09:40:47", "name": "[1/2] net/ice/base: fix tunnel type check for PPPoE", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "10a828830e2a4645b8b57d25ca0e63cc9cf74331", "submitter": { "id": 495, "url": "https://patches.dpdk.org/api/people/495/?format=api", "name": "Zhao1, Wei", "email": "wei.zhao1@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/20200707094048.17690-2-wei.zhao1@intel.com/mbox/", "series": [ { "id": 10844, "url": "https://patches.dpdk.org/api/series/10844/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10844", "date": "2020-07-07T09:40:46", "name": "update base code batch 4", "version": 1, "mbox": "https://patches.dpdk.org/series/10844/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/73416/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/73416/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 66380A00BE;\n\tTue, 7 Jul 2020 12:06:02 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 9C5121DD7C;\n\tTue, 7 Jul 2020 12:05:56 +0200 (CEST)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n by dpdk.org (Postfix) with ESMTP id 479AF1DD2A\n for <dev@dpdk.org>; Tue, 7 Jul 2020 12:05:55 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 07 Jul 2020 03:05:54 -0700", "from unknown (HELO localhost.localdomain.bj.intel.com)\n ([172.16.182.123])\n by fmsmga008.fm.intel.com with ESMTP; 07 Jul 2020 03:05:53 -0700" ], "IronPort-SDR": [ "\n hdvJ2XAxZFpT3a0G9wPpCVGSXignvE9M/PDKIMIKgqR/T0rzZNPv8mz0TQVvTc82hK9RMxfOyR\n gG+c9VX+jPLQ==", "\n WgdpHmCljbheSkkMoRqhXKRz5adIs29AFh9Qsx1kHMgZsUa0ZontCPafi2ek7GEYcBeAM+Hx3n\n lIfLUJdX5Lfw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9674\"; a=\"149075708\"", "E=Sophos;i=\"5.75,323,1589266800\"; d=\"scan'208\";a=\"149075708\"", "E=Sophos;i=\"5.75,323,1589266800\"; d=\"scan'208\";a=\"268159340\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Wei Zhao <wei.zhao1@intel.com>", "To": "dev@dpdk.org", "Cc": "qi.z.zhang@intel.com, nannan.lu@intel.com, Wei Zhao <wei.zhao1@intel.com>", "Date": "Tue, 7 Jul 2020 17:40:47 +0800", "Message-Id": "<20200707094048.17690-2-wei.zhao1@intel.com>", "X-Mailer": "git-send-email 2.19.1", "In-Reply-To": "<20200707094048.17690-1-wei.zhao1@intel.com>", "References": "<20200707094048.17690-1-wei.zhao1@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 1/2] net/ice/base: fix tunnel type check for PPPoE", "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": "This patch fix tunnel type check for PPPoE type of recipe\nwhen search for recipe which has been created before, and\nalso fix a bug of typo.\n\nFixes: 418d2563d10b (\"net/ice/base: get tunnel type for recipe\")\n\nSigned-off-by: Wei Zhao <wei.zhao1@intel.com>\n---\n drivers/net/ice/base/ice_switch.c | 14 +++++---------\n 1 file changed, 5 insertions(+), 9 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex 0e220580a..caa080da2 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -1086,15 +1086,11 @@ static enum ice_sw_tunnel_type ice_get_tun_type_for_recipe(u8 rid)\n \t\ttun_type = ICE_SW_TUN_PPPOE;\n \telse if (!non_tun_valid && gtp_valid)\n \t\ttun_type = ICE_SW_TUN_GTP;\n-\telse if ((non_tun_valid && vxlan_valid) ||\n-\t\t (non_tun_valid && gre_valid) ||\n-\t\t (non_tun_valid && gtp_valid) ||\n-\t\t (non_tun_valid && pppoe_valid))\n+\telse if (non_tun_valid &&\n+\t\t (vxlan_valid || gre_valid || gtp_valid || pppoe_valid))\n \t\ttun_type = ICE_SW_TUN_AND_NON_TUN;\n-\telse if ((non_tun_valid && !vxlan_valid) ||\n-\t\t (non_tun_valid && !gre_valid) ||\n-\t\t (non_tun_valid && !gtp_valid) ||\n-\t\t (non_tun_valid && !pppoe_valid))\n+\telse if (non_tun_valid && !vxlan_valid && !gre_valid && !gtp_valid &&\n+\t\t !pppoe_valid)\n \t\ttun_type = ICE_NON_TUN;\n \n \tif (profile_num > 1 && tun_type == ICE_SW_TUN_PPPOE) {\n@@ -1108,7 +1104,7 @@ static enum ice_sw_tunnel_type ice_get_tun_type_for_recipe(u8 rid)\n \t\t\ttun_type = ICE_SW_TUN_PPPOE_IPV6;\n \t}\n \n-\tif (profile_num == 1 && (flag_valid || non_tun_valid)) {\n+\tif (profile_num == 1 && (flag_valid || non_tun_valid || pppoe_valid)) {\n \t\tfor (j = 0; j < ICE_MAX_NUM_PROFILES; j++) {\n \t\t\tif (ice_is_bit_set(recipe_to_profile[rid], j)) {\n \t\t\t\tswitch (j) {\n", "prefixes": [ "1/2" ] }{ "id": 73416, "url": "