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 7831D42D46; Sun, 25 Jun 2023 08:14:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4B54140ED8; Sun, 25 Jun 2023 08:14:37 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 6188640A7F for ; Sun, 25 Jun 2023 08:14:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687673674; x=1719209674; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9WiKQKh7eB852aIz8UGt+TdCHCkKuZcG5aoSHTnsld4=; b=TWxJ6qfEv7sEce33JJiMHmYbJdIAz4iJR5MK+PtOjRVRG4vDKX8Ubd0d zlq0Roj5GzjeTttzeo/xP25DjdZDlkiiwuVm/n9GISWxNEUU/xq+YcxOt IeFBPWDAbCgO71p+ZYQWR8dbuTLjpQUn4S8M4vdqBREaca4WN4lJMLr+n 0K8T81pM4zpU/5PakiOLN3uWj9VukF0G0VEaaTS7e6MQiwjvW4Ya7uLh4 w6f2AW87gl/3DebuSIoQ8j8n4togZ7ED751GvfKjoebRerF+ANUOMyknR wTJHXoa8AewhhgvS7r+8wojvreoxzHwvCm3dbAZz85enpgn3YFwJCh+tO g==; X-IronPort-AV: E=McAfee;i="6600,9927,10751"; a="361067663" X-IronPort-AV: E=Sophos;i="6.01,156,1684825200"; d="scan'208";a="361067663" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2023 23:14:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10751"; a="718952323" X-IronPort-AV: E=Sophos;i="6.01,156,1684825200"; d="scan'208";a="718952323" Received: from unknown (HELO zhichao-dpdk..) ([10.239.252.103]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jun 2023 23:14:31 -0700 From: Zhichao Zeng To: dev@dpdk.org Cc: qi.z.zhang@intel.com, Zhichao Zeng , Qiming Yang , Zhirun Yan Subject: [PATCH v2] net/ice: revert mark action in switch filter Date: Sun, 25 Jun 2023 14:21:11 +0800 Message-Id: <20230625062111.139578-1-zhichaox.zeng@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230621094125.3071251-1-zhichaox.zeng@intel.com> References: <20230621094125.3071251-1-zhichaox.zeng@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 For current implementation, switch filter missed the consumption part of mark id for app, and switch filter captures the rules first instead of FDIR, which makes the FDIR rules lost. Revert this commit to disable mark action in switch filter and recover the mark action hit in FDIR by default. Fixes: e24f43f2c824 ("net/ice: support flow mark action in switch") Signed-off-by: Zhichao Zeng --- drivers/net/ice/ice_switch_filter.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/net/ice/ice_switch_filter.c b/drivers/net/ice/ice_switch_filter.c index 1ff4b1afda..110d8895fe 100644 --- a/drivers/net/ice/ice_switch_filter.c +++ b/drivers/net/ice/ice_switch_filter.c @@ -1715,7 +1715,6 @@ ice_switch_parse_action(struct ice_pf *pf, struct rte_eth_dev_data *dev_data = pf->adapter->pf.dev_data; const struct rte_flow_action_queue *act_q; const struct rte_flow_action_rss *act_qgrop; - const struct rte_flow_action_mark *act_mark; uint16_t base_queue, i; const struct rte_flow_action *action; enum rte_flow_action_type action_type; @@ -1768,13 +1767,6 @@ ice_switch_parse_action(struct ice_pf *pf, ICE_DROP_PACKET; break; - case RTE_FLOW_ACTION_TYPE_MARK: - act_mark = action->conf; - rule_info->sw_act.fltr_act = - ICE_SET_MARK; - rule_info->sw_act.markid = act_mark->id; - break; - case RTE_FLOW_ACTION_TYPE_VOID: break; @@ -1830,7 +1822,6 @@ ice_switch_check_action(const struct rte_flow_action *actions, case RTE_FLOW_ACTION_TYPE_RSS: case RTE_FLOW_ACTION_TYPE_QUEUE: case RTE_FLOW_ACTION_TYPE_DROP: - case RTE_FLOW_ACTION_TYPE_MARK: case RTE_FLOW_ACTION_TYPE_REPRESENTED_PORT: case RTE_FLOW_ACTION_TYPE_PORT_REPRESENTOR: actions_num++; -- 2.34.1