From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2CFB8A052F; Sun, 26 Jan 2020 10:06:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0A6255F13; Sun, 26 Jan 2020 10:06:00 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 066F54C93 for ; Sun, 26 Jan 2020 10:05:57 +0100 (CET) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jan 2020 01:05:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,365,1574150400"; d="scan'208";a="308511958" Received: from yexl-server.sh.intel.com (HELO localhost) ([10.67.117.17]) by orsmga001.jf.intel.com with ESMTP; 26 Jan 2020 01:05:55 -0800 Date: Sun, 26 Jan 2020 17:05:20 +0800 From: Ye Xiaolong To: chenmin.sun@intel.com Cc: yahui.cao@intel.com, qi.z.zhang@intel.com, beilei.xing@intel.com, dev@dpdk.org Message-ID: <20200126090520.GA53211@intel.com> References: <20200121115653.203974-1-chenmin.sun@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200121115653.203974-1-chenmin.sun@intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) Subject: Re: [dpdk-dev] [DPDK] net/ice: add outer IPv4 matching for GTPU flow X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 01/21, chenmin.sun@intel.com wrote: >From: Chenmin Sun > >This patch adds the capability of matching the outer IPv4 >headers for GTPU flows > >Fixes: efc16c621415 ("net/ice: support flow director GTPU tunnel") > >Signed-off-by: Chenmin Sun >--- > drivers/net/ice/base/ice_fdir.c | 4 ++++ > drivers/net/ice/ice_fdir_filter.c | 3 ++- > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c >index 87fa0afba..2d61dbfd1 100644 >--- a/drivers/net/ice/base/ice_fdir.c >+++ b/drivers/net/ice/base/ice_fdir.c >@@ -804,6 +804,10 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input, > case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_TCP: > case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_ICMP: > case ICE_FLTR_PTYPE_NONF_IPV4_GTPU_IPV4_OTHER: >+ ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET, >+ input->ip.v4.src_ip); >+ ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET, >+ input->ip.v4.dst_ip); > ice_pkt_insert_u32(loc, ICE_IPV4_GTPU_TEID_OFFSET, > input->gtpu_data.teid); > ice_pkt_insert_u6_qfi(loc, ICE_IPV4_GTPU_QFI_OFFSET, >diff --git a/drivers/net/ice/ice_fdir_filter.c b/drivers/net/ice/ice_fdir_filter.c >index f356581d1..5aaa7abcf 100644 >--- a/drivers/net/ice/ice_fdir_filter.c >+++ b/drivers/net/ice/ice_fdir_filter.c >@@ -68,9 +68,10 @@ > ICE_INSET_TUN_SCTP_SRC_PORT | ICE_INSET_TUN_SCTP_DST_PORT) > > #define ICE_FDIR_INSET_GTPU (\ >- ICE_INSET_GTPU_TEID) >+ ICE_INSET_IPV4_SRC | ICE_INSET_IPV4_DST | ICE_INSET_GTPU_TEID) > > #define ICE_FDIR_INSET_GTPU_EH (\ >+ ICE_INSET_IPV4_SRC | ICE_INSET_IPV4_DST | \ > ICE_INSET_GTPU_TEID | ICE_INSET_GTPU_QFI) > > static struct ice_pattern_match_item ice_fdir_pattern_os[] = { >-- >2.17.1 > Acked-by: Xiaolong Ye Applied to dpdk-next-net-intel, Thanks.