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 0C3E7A0508; Wed, 13 Apr 2022 10:12:13 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 975204068B; Wed, 13 Apr 2022 10:11:20 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id B0635410DD for ; Wed, 13 Apr 2022 10:11:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649837478; x=1681373478; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LV+q9yR0xTP+mFXIzBaBeeG/9OhtLKY9m3tE6qltvrM=; b=XcUGHXOwvTK+Dbr/oic8WWwpUVe86FmL/+p85zVEqF7KqTt2I0Ie2nZu +QOW75XvkxYBz+NEQVreMkKxO3yVlqHvA8+Sbwy9rJFOuDTfhzsjebYMY JNRyANdFp+NHWQYKrzZx8gXVLptYrmnhjUMkZNc0VjwXtu5lmYh211ZLw XDL2KOdx+O8xcTvra4e1u9D1ctoThWldyC0rjpSysds8Yhc7sJcopEEMI tyzhTfEksHc3+bM99Il7Xb22AIG1rQ3p06Adn/gj7e+j7pdehcP/J0vW9 rr+sC8HPAKUEo7K4gTJJyGaJAvnNjHmT0LB1AzQMoNHuJcW2AL8yJ+fM8 Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10315"; a="244490824" X-IronPort-AV: E=Sophos;i="5.90,256,1643702400"; d="scan'208";a="244490824" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 01:11:17 -0700 X-IronPort-AV: E=Sophos;i="5.90,256,1643702400"; d="scan'208";a="526847667" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2022 01:11:15 -0700 From: Kevin Liu To: dev@dpdk.org Cc: qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com, Alvin Zhang , Kevin Liu Subject: [PATCH v2 14/33] net/ice/base: fix ethertype filter input set Date: Wed, 13 Apr 2022 16:09:13 +0000 Message-Id: <20220413160932.2074781-15-kevinx.liu@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220413160932.2074781-1-kevinx.liu@intel.com> References: <20220407105706.18889-1-kevinx.liu@intel.com> <20220413160932.2074781-1-kevinx.liu@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 From: Alvin Zhang Add destination and source MAC as the input sets to ethertype filter. For example: flow create 0 ingress pattern eth dst is 00:11:22:33:44:55 type is 0x802 / end actions queue index 2 / end This flow will result in all the matched ingress packets be forwarded to queue 2. Fixes: 1f70fb3e958a ("net/ice/base: support flow director for non-IP packets") Signed-off-by: Alvin Zhang Signed-off-by: Kevin Liu --- drivers/net/ice/base/ice_fdir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c index ae76361102..0a1d45a9d7 100644 --- a/drivers/net/ice/base/ice_fdir.c +++ b/drivers/net/ice/base/ice_fdir.c @@ -3935,6 +3935,9 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input, input->ip.v6.dst_port); break; case ICE_FLTR_PTYPE_NON_IP_L2: + ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac); + ice_pkt_insert_mac_addr(loc + ETH_ALEN, + input->ext_data.src_mac); ice_pkt_insert_u16(loc, ICE_MAC_ETHTYPE_OFFSET, input->ext_data.ether_type); break; -- 2.33.1