Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/97534/?format=api
https://patches.dpdk.org/api/patches/97534/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210830075647.3011046-2-yuying.zhang@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": "<20210830075647.3011046-2-yuying.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210830075647.3011046-2-yuying.zhang@intel.com", "date": "2021-08-30T07:56:47", "name": "[RFC,2/2] net/ice: support drop any and steer all to queue", "commit_ref": null, "pull_url": null, "state": "rfc", "archived": true, "hash": "99181756bff5f6937ba89ab766625266ae91f513", "submitter": { "id": 1844, "url": "https://patches.dpdk.org/api/people/1844/?format=api", "name": "Zhang, Yuying", "email": "yuying.zhang@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210830075647.3011046-2-yuying.zhang@intel.com/mbox/", "series": [ { "id": 18521, "url": "https://patches.dpdk.org/api/series/18521/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=18521", "date": "2021-08-30T07:56:46", "name": "[RFC,1/2] net/ice/base: support drop any and steer all to queue", "version": 1, "mbox": "https://patches.dpdk.org/series/18521/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/97534/comments/", "check": "warning", "checks": "https://patches.dpdk.org/api/patches/97534/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 86DCFA034F;\n\tMon, 30 Aug 2021 10:13:49 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 04A2241134;\n\tMon, 30 Aug 2021 10:13:45 +0200 (CEST)", "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by mails.dpdk.org (Postfix) with ESMTP id B7DA0410FA\n for <dev@dpdk.org>; Mon, 30 Aug 2021 10:13:43 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 30 Aug 2021 01:13:43 -0700", "from dpdk-yyzhang2.sh.intel.com ([10.67.117.158])\n by fmsmga002.fm.intel.com with ESMTP; 30 Aug 2021 01:13:41 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10091\"; a=\"218272776\"", "E=Sophos;i=\"5.84,362,1620716400\"; d=\"scan'208\";a=\"218272776\"", "E=Sophos;i=\"5.84,362,1620716400\"; d=\"scan'208\";a=\"540244825\"" ], "X-ExtLoop1": "1", "From": "Yuying Zhang <yuying.zhang@intel.com>", "To": "dev@dpdk.org,\n\tqi.z.zhang@intel.com", "Cc": "Yuying Zhang <yuying.zhang@intel.com>", "Date": "Mon, 30 Aug 2021 07:56:47 +0000", "Message-Id": "<20210830075647.3011046-2-yuying.zhang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20210830075647.3011046-1-yuying.zhang@intel.com>", "References": "<20210830075647.3011046-1-yuying.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH RFC 2/2] net/ice: support drop any and steer all\n to queue", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "This patch supports drop any and steer all to queue in switch\nfilter. Support new rte_flow pattern any to handle all packets.\nThe usage is listed below.\n\n1. drop any:\nflow create 0 ingress pattern any / end actions drop / end\nAll packets received in port 0 will be dropped.\n\n2. steer all to queue:\nflow create 0 ingress pattern any / end actions queue index 3 / end\nAll packets received in port 0 will be steered to queue 3.\n\nSigned-off-by: Yuying Zhang <yuying.zhang@intel.com>\n---\n drivers/net/ice/ice_generic_flow.c | 7 +++++++\n drivers/net/ice/ice_generic_flow.h | 3 +++\n drivers/net/ice/ice_switch_filter.c | 9 +++++++++\n 3 files changed, 19 insertions(+)", "diff": "diff --git a/drivers/net/ice/ice_generic_flow.c b/drivers/net/ice/ice_generic_flow.c\nindex 25d15a8adb..7ab0f4be24 100644\n--- a/drivers/net/ice/ice_generic_flow.c\n+++ b/drivers/net/ice/ice_generic_flow.c\n@@ -65,6 +65,12 @@ enum rte_flow_item_type pattern_empty[] = {\n \tRTE_FLOW_ITEM_TYPE_END,\n };\n \n+/* any */\n+enum rte_flow_item_type pattern_any[] = {\n+\tRTE_FLOW_ITEM_TYPE_ANY,\n+\tRTE_FLOW_ITEM_TYPE_END,\n+};\n+\n /* L2 */\n enum rte_flow_item_type pattern_ethertype[] = {\n \tRTE_FLOW_ITEM_TYPE_ETH,\n@@ -2152,6 +2158,7 @@ static struct ice_ptype_match ice_ptype_map[] = {\n \t{pattern_eth_ipv4_nvgre_eth_ipv4_udp,\t\tICE_MAC_IPV4_TUN_IPV4_UDP_PAY},\n \t{pattern_eth_ipv4_nvgre_eth_ipv4_tcp,\t\tICE_MAC_IPV4_TUN_IPV4_TCP},\n \t{pattern_empty,\t\t\t\t\t0},\n+\t{pattern_any,\t\t\t\t\t0},\n };\n \n static bool\ndiff --git a/drivers/net/ice/ice_generic_flow.h b/drivers/net/ice/ice_generic_flow.h\nindex 18918769d2..69d3698026 100644\n--- a/drivers/net/ice/ice_generic_flow.h\n+++ b/drivers/net/ice/ice_generic_flow.h\n@@ -207,6 +207,9 @@\n /* empty pattern */\n extern enum rte_flow_item_type pattern_empty[];\n \n+/* any */\n+extern enum rte_flow_item_type pattern_any[];\n+\n /* L2 */\n extern enum rte_flow_item_type pattern_ethertype[];\n extern enum rte_flow_item_type pattern_ethertype_vlan[];\ndiff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c\nindex 6525e6c115..93399a0291 100644\n--- a/drivers/net/ice/ice_switch_filter.c\n+++ b/drivers/net/ice/ice_switch_filter.c\n@@ -247,6 +247,8 @@ ice_pattern_match_item ice_switch_pattern_dist_list[] = {\n \t\t\tICE_SW_INSET_MAC_PPPOE_IPV4, ICE_INSET_NONE},\n \t{pattern_eth_qinq_pppoes_ipv6,\n \t\t\tICE_SW_INSET_MAC_PPPOE_IPV6, ICE_INSET_NONE},\n+\t{pattern_any,\n+\t\t\tICE_INSET_NONE,\tICE_INSET_NONE},\n };\n \n static struct\n@@ -349,6 +351,8 @@ ice_pattern_match_item ice_switch_pattern_perm_list[] = {\n \t\t\tICE_SW_INSET_MAC_PPPOE_IPV4, ICE_INSET_NONE},\n \t{pattern_eth_qinq_pppoes_ipv6,\n \t\t\tICE_SW_INSET_MAC_PPPOE_IPV6, ICE_INSET_NONE},\n+\t{pattern_any,\n+\t\t\tICE_INSET_NONE,\tICE_INSET_NONE},\n };\n \n static int\n@@ -505,6 +509,10 @@ ice_switch_inset_get(const struct rte_flow_item pattern[],\n \t\titem_type = item->type;\n \n \t\tswitch (item_type) {\n+\t\tcase RTE_FLOW_ITEM_TYPE_ANY:\n+\t\t\t*tun_type = ICE_ANY;\n+\t\t\tbreak;\n+\n \t\tcase RTE_FLOW_ITEM_TYPE_ETH:\n \t\t\teth_spec = item->spec;\n \t\t\teth_mask = item->mask;\n@@ -1628,6 +1636,7 @@ static bool\n ice_is_profile_rule(enum ice_sw_tunnel_type tun_type)\n {\n \tswitch (tun_type) {\n+\tcase ICE_ANY:\n \tcase ICE_SW_TUN_PROFID_IPV6_ESP:\n \tcase ICE_SW_TUN_PROFID_IPV6_AH:\n \tcase ICE_SW_TUN_PROFID_MAC_IPV6_L2TPV3:\n", "prefixes": [ "RFC", "2/2" ] }{ "id": 97534, "url": "