From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4ECDA4263C; Tue, 26 Sep 2023 05:09:54 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E515440697; Tue, 26 Sep 2023 05:09:33 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 8A1E8402E7 for ; Tue, 26 Sep 2023 05:09:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695697771; x=1727233771; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=x2T9vQG7QdB8WiMnx1MivUW/YuJK6iGz9eIAD6zEP8w=; b=FML2XPOPJvcQwbt8b4sPPFbXpxmQ9UNmXQH5DgY3938CisUDg4EKSPB8 D5aCtSq0F3+qbML9iyk4WyZxuKDpNYAiwzZmHYQxQKwnBBg3KZtaMReqg +lijhPJ9O0xXvABVBjr3nLtx7En/u+xN0xxDMsnlETDJLvJPI2CMuogPl XiAe3yCFJKNUnj2zaG0478pjMqpXKVnGD7aFOgsBQZaimU5YtNhH75Pnz CMa9iZfsGzCJyLwnkVX7fjglEF+AnIf+vI5BApCDvafQAfH65owL3v6zP G0l4RfYLBdMECCtae7U61dmgEXGuRmWXIuD+lVDo2dTQp/t6euDkPruqV w==; X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="384246966" X-IronPort-AV: E=Sophos;i="6.03,176,1694761200"; d="scan'208";a="384246966" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Sep 2023 20:09:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10843"; a="818878531" X-IronPort-AV: E=Sophos;i="6.03,176,1694761200"; d="scan'208";a="818878531" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.37]) by fmsmga004.fm.intel.com with ESMTP; 25 Sep 2023 20:09:27 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: zhichaox.zeng@intel.com, dev@dpdk.org, Qi Zhang Subject: [PATCH v5 4/5] net/ice: refine supported flow pattern name Date: Tue, 26 Sep 2023 07:29:30 -0400 Message-Id: <20230926112931.4191107-5-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230926112931.4191107-1-qi.z.zhang@intel.com> References: <20230814202616.3346652-1-qi.z.zhang@intel.com> <20230926112931.4191107-1-qi.z.zhang@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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Unified the supported pattern array name as ice__supported_pattern. Signed-off-by: Qi Zhang --- drivers/net/ice/ice_acl_filter.c | 6 +++--- drivers/net/ice/ice_fdir_filter.c | 6 +++--- drivers/net/ice/ice_switch_filter.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/ice/ice_acl_filter.c b/drivers/net/ice/ice_acl_filter.c index e507bb927a..63a525b363 100644 --- a/drivers/net/ice/ice_acl_filter.c +++ b/drivers/net/ice/ice_acl_filter.c @@ -47,7 +47,7 @@ struct acl_rule { }; static struct -ice_pattern_match_item ice_acl_pattern[] = { +ice_pattern_match_item ice_acl_supported_pattern[] = { {pattern_eth_ipv4, ICE_ACL_INSET_ETH_IPV4, ICE_INSET_NONE, ICE_INSET_NONE}, {pattern_eth_ipv4_udp, ICE_ACL_INSET_ETH_IPV4_UDP, ICE_INSET_NONE, ICE_INSET_NONE}, {pattern_eth_ipv4_tcp, ICE_ACL_INSET_ETH_IPV4_TCP, ICE_INSET_NONE, ICE_INSET_NONE}, @@ -1050,8 +1050,8 @@ ice_flow_engine ice_acl_engine = { struct ice_flow_parser ice_acl_parser = { .engine = &ice_acl_engine, - .array = ice_acl_pattern, - .array_len = RTE_DIM(ice_acl_pattern), + .array = ice_acl_supported_pattern, + .array_len = RTE_DIM(ice_acl_supported_pattern), .parse_pattern_action = ice_acl_parse, .stage = ICE_FLOW_STAGE_DISTRIBUTOR, }; diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c index 6afcdf5376..0b7920ad44 100644 --- a/drivers/net/ice/ice_fdir_filter.c +++ b/drivers/net/ice/ice_fdir_filter.c @@ -106,7 +106,7 @@ ICE_INSET_IPV6_SRC | ICE_INSET_IPV6_DST | \ ICE_INSET_NAT_T_ESP_SPI) -static struct ice_pattern_match_item ice_fdir_pattern_list[] = { +static struct ice_pattern_match_item ice_fdir_supported_pattern[] = { {pattern_raw, ICE_INSET_NONE, ICE_INSET_NONE, ICE_INSET_NONE}, {pattern_ethertype, ICE_FDIR_INSET_ETH, ICE_INSET_NONE, ICE_INSET_NONE}, {pattern_eth_ipv4, ICE_FDIR_INSET_ETH_IPV4, ICE_INSET_NONE, ICE_INSET_NONE}, @@ -2494,8 +2494,8 @@ ice_fdir_parse(struct ice_adapter *ad, struct ice_flow_parser ice_fdir_parser = { .engine = &ice_fdir_engine, - .array = ice_fdir_pattern_list, - .array_len = RTE_DIM(ice_fdir_pattern_list), + .array = ice_fdir_supported_pattern, + .array_len = RTE_DIM(ice_fdir_supported_pattern), .parse_pattern_action = ice_fdir_parse, .stage = ICE_FLOW_STAGE_DISTRIBUTOR, }; diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 8f29326762..122b87f625 100644 --- a/drivers/net/ice/ice_switch_filter.c +++ b/drivers/net/ice/ice_switch_filter.c @@ -202,7 +202,7 @@ struct ice_switch_filter_conf { }; static struct -ice_pattern_match_item ice_switch_pattern_dist_list[] = { +ice_pattern_match_item ice_switch_supported_pattern[] = { {pattern_any, ICE_INSET_NONE, ICE_INSET_NONE, ICE_INSET_NONE}, {pattern_ethertype, ICE_SW_INSET_ETHER, ICE_INSET_NONE, ICE_INSET_NONE}, {pattern_ethertype_vlan, ICE_SW_INSET_MAC_VLAN, ICE_INSET_NONE, ICE_INSET_NONE}, @@ -2075,8 +2075,8 @@ ice_flow_engine ice_switch_engine = { struct ice_flow_parser ice_switch_parser = { .engine = &ice_switch_engine, - .array = ice_switch_pattern_dist_list, - .array_len = RTE_DIM(ice_switch_pattern_dist_list), + .array = ice_switch_supported_pattern, + .array_len = RTE_DIM(ice_switch_supported_pattern), .parse_pattern_action = ice_switch_parse_pattern_action, .stage = ICE_FLOW_STAGE_DISTRIBUTOR, }; -- 2.31.1