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 82512A0C40; Wed, 9 Jun 2021 04:56:42 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 83E7E410F7; Wed, 9 Jun 2021 04:56:34 +0200 (CEST) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 22A1440689 for ; Wed, 9 Jun 2021 04:56:31 +0200 (CEST) IronPort-SDR: jPbrFePIYjgdPAYu9ly7k8bgAZmhxzgFAdx2JYOiDBA3Q6gvjtPnmZXoUP0oKU6hRYTzajc40z 9XFNK0bW7KiQ== X-IronPort-AV: E=McAfee;i="6200,9189,10009"; a="204804671" X-IronPort-AV: E=Sophos;i="5.83,260,1616482800"; d="scan'208";a="204804671" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2021 19:56:30 -0700 IronPort-SDR: jiry8C2gKoeIdnZ/T/GS1DNHwzep3+2iNzAIpUhbFgSx7NqXMaXoPhyoEbnm+IMm/xtCWguRr5 eZHQ9CK3dfUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,260,1616482800"; d="scan'208";a="482217607" Received: from unknown (HELO npg-dpdk-cvl-simeisu-118d193.sh.intel.com) ([10.67.119.195]) by orsmga001.jf.intel.com with ESMTP; 08 Jun 2021 19:56:21 -0700 From: Simei Su To: qi.z.zhang@intel.com Cc: dev@dpdk.org, junfeng.guo@intel.com, yahui.cao@intel.com, Simei Su Date: Wed, 9 Jun 2021 10:49:50 +0800 Message-Id: <20210609024951.382979-3-simei.su@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20210609024951.382979-1-simei.su@intel.com> References: <20210527055330.341052-1-simei.su@intel.com> <20210609024951.382979-1-simei.su@intel.com> Subject: [dpdk-dev] [PATCH v2 2/3] net/ice/base: support FDIR ESP for outer IP match 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 Sender: "dev" Enable FDIR ESP for matching outer IPV4/IPV6 SRC/DST field. Signed-off-by: Simei Su --- drivers/net/ice/base/ice_fdir.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c index 1805082..926f9c5 100644 --- a/drivers/net/ice/base/ice_fdir.c +++ b/drivers/net/ice/base/ice_fdir.c @@ -1733,10 +1733,18 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input, input->l2tpv3_data.session_id); break; case ICE_FLTR_PTYPE_NONF_IPV4_ESP: + ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET, + input->ip.v4.src_ip); + ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET, + input->ip.v4.dst_ip); ice_pkt_insert_u32(loc, ICE_IPV4_ESP_SPI_OFFSET, input->ip.v4.sec_parm_idx); break; case ICE_FLTR_PTYPE_NONF_IPV6_ESP: + ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_DST_ADDR_OFFSET, + input->ip.v6.src_ip); + ice_pkt_insert_ipv6_addr(loc, ICE_IPV6_SRC_ADDR_OFFSET, + input->ip.v6.dst_ip); ice_pkt_insert_u32(loc, ICE_IPV6_ESP_SPI_OFFSET, input->ip.v6.sec_parm_idx); break; -- 2.9.5