Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/127008/?format=api
http://patches.dpdk.org/api/patches/127008/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230518151638.1207021-15-qiming.yang@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": "<20230518151638.1207021-15-qiming.yang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230518151638.1207021-15-qiming.yang@intel.com", "date": "2023-05-18T15:16:32", "name": "[v2,14/20] net/ice/base: modify tunnel match mask", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "601591042c6fc0944d92042a2bcd68d7ff70c5a8", "submitter": { "id": 522, "url": "http://patches.dpdk.org/api/people/522/?format=api", "name": "Qiming Yang", "email": "qiming.yang@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/20230518151638.1207021-15-qiming.yang@intel.com/mbox/", "series": [ { "id": 28063, "url": "http://patches.dpdk.org/api/series/28063/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28063", "date": "2023-05-18T15:16:18", "name": "net/ice/base: code update", "version": 2, "mbox": "http://patches.dpdk.org/series/28063/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/127008/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/127008/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 5EF5642AF1;\n\tThu, 18 May 2023 17:36:12 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9DAD542D9C;\n\tThu, 18 May 2023 17:34:44 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id B62F042D46\n for <dev@dpdk.org>; Thu, 18 May 2023 17:34:41 +0200 (CEST)", "from fmsmga007.fm.intel.com ([10.253.24.52])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 18 May 2023 08:34:41 -0700", "from dpdk-qiming3.sh.intel.com ([10.67.111.4])\n by fmsmga007.fm.intel.com with ESMTP; 18 May 2023 08:34:40 -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=1684424081; x=1715960081;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=mzQOERMGypxJoQsco10SV5AiB+4C53hjbLbQKM9A/Kc=;\n b=KjxP9sNxuLyf1ZtP3fOZGUUmJRdx9ZSiP8LPDitSPEU+KOhTLbKTM/72\n avTNLUbepUayT1cAd0wz1v2A3vpIq/R3ns3/k7KcHJUHLNQToBbCazRlB\n qnmMroS8by/JeQlabmlyOGDX2LlDuL54Y0BVZbAZv/fPrnrIeIwoW/EEC\n 5RnOug/y2S6aod5FL+FdrSjENUmlyvO9hZhSaADPy5QcVYAsUZUJTJwS9\n wbD7Cbfc6OVtWGMP5Qpy5eIPUOIQHhS0vJA8H1QRQCE4JILOhF1ZYAByW\n itqt7QCkB2qlBJb3UHs2BgeCWxglJT/gljN8KjGtSqZBnFahCLppsmA/O Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10714\"; a=\"341527743\"", "E=Sophos;i=\"5.99,285,1677571200\"; d=\"scan'208\";a=\"341527743\"", "E=McAfee;i=\"6600,9927,10714\"; a=\"705235178\"", "E=Sophos;i=\"5.99,285,1677571200\"; d=\"scan'208\";a=\"705235178\"" ], "X-ExtLoop1": "1", "From": "Qiming Yang <qiming.yang@intel.com>", "To": "dev@dpdk.org", "Cc": "qi.z.zhang@intel.com, Qiming Yang <qiming.yang@intel.com>,\n Marcin Domagala <marcinx.domagala@intel.com>", "Subject": "[PATCH v2 14/20] net/ice/base: modify tunnel match mask", "Date": "Thu, 18 May 2023 15:16:32 +0000", "Message-Id": "<20230518151638.1207021-15-qiming.yang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230518151638.1207021-1-qiming.yang@intel.com>", "References": "<20230427062001.478032-1-qiming.yang@intel.com>\n <20230518151638.1207021-1-qiming.yang@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": "Tunneled packets with VLAN inside were not detected by filter. This\npatch fix it by modifying tunnel flag match mask. As a result both type\nof packets (tunneled VLAN, tunneled non-VLAN) will be detected by filter.\n\nSigned-off-by: Marcin Domagala <marcinx.domagala@intel.com>\nSigned-off-by: Qiming Yang <qiming.yang@intel.com>\n---\n drivers/net/ice/base/ice_common.c | 4 +++-\n drivers/net/ice/base/ice_protocol_type.h | 1 +\n drivers/net/ice/base/ice_switch.c | 3 ++-\n 3 files changed, 6 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c\nindex 9992d0ad4d..67203cb932 100644\n--- a/drivers/net/ice/base/ice_common.c\n+++ b/drivers/net/ice/base/ice_common.c\n@@ -1510,7 +1510,9 @@ enum ice_status ice_clear_rxq_ctx(struct ice_hw *hw, u32 rxq_index)\n \treturn ICE_SUCCESS;\n }\n \n-/* LAN Tx Queue Context */\n+/* LAN Tx Queue Context used for set Tx config by ice_aqc_opc_add_txqs,\n+ * Bit[0-175] is valid\n+ */\n const struct ice_ctx_ele ice_tlan_ctx_info[] = {\n \t\t\t\t /* Field\t\t\tWidth\tLSB */\n \tICE_CTX_STORE(ice_tlan_ctx, base,\t\t\t57,\t0),\ndiff --git a/drivers/net/ice/base/ice_protocol_type.h b/drivers/net/ice/base/ice_protocol_type.h\nindex 05a89050fe..d2d3f75fc2 100644\n--- a/drivers/net/ice/base/ice_protocol_type.h\n+++ b/drivers/net/ice/base/ice_protocol_type.h\n@@ -226,6 +226,7 @@ enum ice_prot_id {\n #define ICE_TUN_FLAG_MDID_OFF(word) (ICE_MDID_SIZE * (ICE_TUN_FLAG_MDID + (word)))\n #define ICE_TUN_FLAG_MASK 0xFF\n #define ICE_DIR_FLAG_MASK 0x10\n+#define ICE_TUN_FLAG_IN_VLAN_MASK 0x80 /* VLAN inside tunneled header */\n #define ICE_TUN_FLAG_VLAN_MASK 0x01\n #define ICE_TUN_FLAG_FV_IND 2\n \ndiff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c\nindex c86d68d543..06665a29db 100644\n--- a/drivers/net/ice/base/ice_switch.c\n+++ b/drivers/net/ice/base/ice_switch.c\n@@ -7790,7 +7790,8 @@ ice_tun_type_match_word(struct ice_adv_rule_info *rinfo, u16 *off, u16 *mask)\n \n \tcase ICE_SW_TUN_GENEVE_VLAN:\n \tcase ICE_SW_TUN_VXLAN_VLAN:\n-\t\t*mask = ICE_TUN_FLAG_MASK & ~ICE_TUN_FLAG_VLAN_MASK;\n+\t\t*mask = ICE_TUN_FLAG_MASK & ~(ICE_TUN_FLAG_VLAN_MASK |\n+\t\t\tICE_TUN_FLAG_IN_VLAN_MASK);\n \t\t*off = ICE_TUN_FLAG_MDID_OFF(1);\n \t\treturn true;\n \n", "prefixes": [ "v2", "14/20" ] }{ "id": 127008, "url": "