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 6A0D8A0508; Thu, 7 Apr 2022 04:59:31 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DF9A741143; Thu, 7 Apr 2022 04:58:56 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id CDC7342877 for ; Thu, 7 Apr 2022 04:58:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649300335; x=1680836335; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=LV+q9yR0xTP+mFXIzBaBeeG/9OhtLKY9m3tE6qltvrM=; b=lnWdpgYXkwfxFjy6ILV9PcEfrt1H6d2tF1MrDTn9EFfEzDHfoJR57Gpf 6Lamla7Tp5RNJ3tZSTvH2uYEZOoy/iY/1fN4vu83wHsduuqxyQ4zkNS6Q FB2evV7sF1iF3I3O7HyaNFqNF4k7QRw8AJ7CowLvFkKy7ntUf/0y+MYj5 ZyhSmm5k2CIoC+dEWrqwaYV61G8N3+8RI2eOcwm7wJnE+Em7pUWC4StEG CnyNgACbL6nXYCBzD+TPWXA7C1nHaFtrW1kPeUsq7sEiuJhVFPLl7Pjx0 q8p4eHqjWZ3YNiigW90cMDgs8O6vqUbzdff7V8w/I4A6aRLXLe/jTaXGN g==; X-IronPort-AV: E=McAfee;i="6200,9189,10309"; a="248738368" X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="248738368" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:58:54 -0700 X-IronPort-AV: E=Sophos;i="5.90,241,1643702400"; d="scan'208";a="570850586" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Apr 2022 19:58:52 -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 14/39] net/ice/base: fix ethertype filter input set Date: Thu, 7 Apr 2022 10:56:41 +0000 Message-Id: <20220407105706.18889-15-kevinx.liu@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220407105706.18889-1-kevinx.liu@intel.com> References: <20220407105706.18889-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