Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/81632/?format=api
http://patches.dpdk.org/api/patches/81632/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201020224846.1592682-2-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": "<20201020224846.1592682-2-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201020224846.1592682-2-qi.z.zhang@intel.com", "date": "2020-10-20T22:48:26", "name": "[01/21] net/ice/base: add tunnel support for FDIR", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b4b8a86b652285fa93b417f9a08edc89d59f8d67", "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/20201020224846.1592682-2-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 13156, "url": "http://patches.dpdk.org/api/series/13156/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13156", "date": "2020-10-20T22:48:25", "name": "ice: update base code", "version": 1, "mbox": "http://patches.dpdk.org/series/13156/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/81632/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/81632/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 8CAE9A04DD;\n\tWed, 21 Oct 2020 00:45:16 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2ECA7AC9F;\n\tWed, 21 Oct 2020 00:44:59 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id A3F05AC69\n for <dev@dpdk.org>; Wed, 21 Oct 2020 00:44:54 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 20 Oct 2020 15:44:53 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by orsmga005.jf.intel.com with ESMTP; 20 Oct 2020 15:44:51 -0700" ], "IronPort-SDR": [ "\n XbLwyT6poDPoqWIRXGufzzEpJthUAunEBpJ0MANSd6CqPBQQUP14LURQ9NvxcnA7C79mVp6dRG\n cktXPx570PGg==", "\n gBr3qLUUpluzIwjpuSYTQjr0WnGn/EeVltwaG4/RpZX4dSrBllA/rYbHfdOpvdu84+FEdCCB4p\n 3Td5ov0ojknQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9780\"; a=\"166510574\"", "E=Sophos;i=\"5.77,399,1596524400\"; d=\"scan'208\";a=\"166510574\"", "E=Sophos;i=\"5.77,399,1596524400\"; d=\"scan'208\";a=\"533254517\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "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>,\n Zhirun Yan <zhirun.yan@intel.com>", "Date": "Wed, 21 Oct 2020 06:48:26 +0800", "Message-Id": "<20201020224846.1592682-2-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.25.4", "In-Reply-To": "<20201020224846.1592682-1-qi.z.zhang@intel.com>", "References": "<20201020224846.1592682-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 01/21] net/ice/base: add tunnel support for FDIR", "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": "Add struct to store outer part for tunnel rule.\nAdd vxlan ptype in ipv4 mac bitmap. So when create a vxlan rule, the\nptype group will be valid.\n\nSigned-off-by: Zhirun Yan <zhirun.yan@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_fdir.c | 8 ++++++++\n drivers/net/ice/base/ice_fdir.h | 9 +++++++++\n drivers/net/ice/base/ice_flow.c | 6 +++---\n 3 files changed, 20 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c\nindex aea388f2ab..aeff7af55d 100644\n--- a/drivers/net/ice/base/ice_fdir.c\n+++ b/drivers/net/ice/base/ice_fdir.c\n@@ -1057,6 +1057,14 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input,\n \t\t\tloc[20] = ICE_FDIR_IPV4_PKT_FLAG_DF;\n \t\tbreak;\n \tcase ICE_FLTR_PTYPE_NONF_IPV4_UDP:\n+\t\tice_pkt_insert_mac_addr(pkt, input->ext_data_outer.dst_mac);\n+\t\tice_pkt_insert_mac_addr(pkt + ETH_ALEN,\n+\t\t\t\t\tinput->ext_data_outer.src_mac);\n+\t\tice_pkt_insert_u32(pkt, ICE_IPV4_SRC_ADDR_OFFSET,\n+\t\t\t\t input->ip_outer.v4.dst_ip);\n+\t\tice_pkt_insert_u32(pkt, ICE_IPV4_DST_ADDR_OFFSET,\n+\t\t\t\t input->ip_outer.v4.src_ip);\n+\t\tice_pkt_insert_u8(pkt, ICE_IPV4_TOS_OFFSET, input->ip_outer.v4.tos);\n \t\tice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET,\n \t\t\t\t input->ip.v4.src_ip);\n \t\tice_pkt_insert_u16(loc, ICE_IPV4_UDP_DST_PORT_OFFSET,\ndiff --git a/drivers/net/ice/base/ice_fdir.h b/drivers/net/ice/base/ice_fdir.h\nindex 7e00bb2730..d363de385d 100644\n--- a/drivers/net/ice/base/ice_fdir.h\n+++ b/drivers/net/ice/base/ice_fdir.h\n@@ -181,6 +181,15 @@ struct ice_fdir_fltr {\n \t\tstruct ice_fdir_v6 v6;\n \t} ip, mask;\n \n+\t/* for tunnel outer part */\n+\tunion {\n+\t\tstruct ice_fdir_v4 v4;\n+\t\tstruct ice_fdir_v6 v6;\n+\t} ip_outer, mask_outer;\n+\n+\tstruct ice_fdir_extra ext_data_outer;\n+\tstruct ice_fdir_extra ext_mask_outer;\n+\n \tstruct ice_fdir_udp_gtp gtpu_data;\n \tstruct ice_fdir_udp_gtp gtpu_mask;\n \ndiff --git a/drivers/net/ice/base/ice_flow.c b/drivers/net/ice/base/ice_flow.c\nindex 80ac0b662e..601ca251d3 100644\n--- a/drivers/net/ice/base/ice_flow.c\n+++ b/drivers/net/ice/base/ice_flow.c\n@@ -222,7 +222,7 @@ static const u32 ice_ptypes_macvlan_il[] = {\n * include IPV4 other PTYPEs\n */\n static const u32 ice_ptypes_ipv4_ofos[] = {\n-\t0x1DC00000, 0x04000800, 0x00000000, 0x00000000,\n+\t0x1DC00000, 0x24000800, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000155, 0x00000000, 0x00000000,\n \t0x00000000, 0x000FC000, 0x000002A0, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n@@ -236,7 +236,7 @@ static const u32 ice_ptypes_ipv4_ofos[] = {\n * IPV4 other PTYPEs\n */\n static const u32 ice_ptypes_ipv4_ofos_all[] = {\n-\t0x1DC00000, 0x04000800, 0x00000000, 0x00000000,\n+\t0x1DC00000, 0x24000800, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000155, 0x00000000, 0x00000000,\n \t0x00000000, 0x000FC000, 0x83E0FAA0, 0x00000101,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n@@ -434,7 +434,7 @@ static const u32 ice_ptypes_gre_of[] = {\n \n /* Packet types for packets with an Innermost/Last MAC header */\n static const u32 ice_ptypes_mac_il[] = {\n-\t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n+\t0x00000000, 0x20000000, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n \t0x00000000, 0x00000000, 0x00000000, 0x00000000,\n", "prefixes": [ "01/21" ] }{ "id": 81632, "url": "