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 5382EA0546; Thu, 27 May 2021 08:01:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A923410F9; Thu, 27 May 2021 08:01:49 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 3F1F3410F0 for ; Thu, 27 May 2021 08:01:48 +0200 (CEST) IronPort-SDR: nAmJnTgt6ZQpNLJIb84HgA0yTFFtMQnDTc7Zr1I7p6DlKxEDwCPCaMWqglmdIASlEKHvaDK5DU J0nMkmMcL+dg== X-IronPort-AV: E=McAfee;i="6200,9189,9996"; a="266547494" X-IronPort-AV: E=Sophos;i="5.82,334,1613462400"; d="scan'208";a="266547494" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 May 2021 23:01:12 -0700 IronPort-SDR: kWCXcpA+8hNyP9qaRQ2aAivfhJxSOYMeym4noV5aDQMNGsqtAF72enO/4ibUzi4jjbaCnIQf4l Vln4kTIsCSxA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,334,1613462400"; d="scan'208";a="414756461" Received: from unknown (HELO npg-dpdk-cvl-simeisu-118d193.sh.intel.com) ([10.67.119.195]) by orsmga002.jf.intel.com with ESMTP; 26 May 2021 23:01:09 -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: Thu, 27 May 2021 13:53:29 +0800 Message-Id: <20210527055330.341052-2-simei.su@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20210527055330.341052-1-simei.su@intel.com> References: <20210527055330.341052-1-simei.su@intel.com> Subject: [dpdk-dev] [PATCH 1/2] 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