From patchwork Wed Jun 22 03:00:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yan, Zhirun" X-Patchwork-Id: 113205 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D1BCA04FD; Wed, 22 Jun 2022 05:03:51 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 844D940A87; Wed, 22 Jun 2022 05:03:49 +0200 (CEST) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 1E1FC40A87 for ; Wed, 22 Jun 2022 05:03:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655867028; x=1687403028; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZYwmdzzGwXbEBCN05RaPb1X6hyPbeRVzwhreQdRASUI=; b=jDDLB1IRTIbEaDirs1bdT55/84XrB5Mm9Q2ugtq0z4masysMiR5TBu4M NCy8/z1MSxaIXp3BPic2So7laeWh6OWbXFuPDTE5uIkurkqsDFp/Ykg0a MZCBnIdGSgPW/iYxCh9mFgCvtVd1c7LAtUGmpVSmkOHPoE7iFcqDaeLM6 lteQ9pbe5IA3g5AHgpGuSKrXzE71pGE4b1NHMqjMYO/zpfp1XfM71qjjV c62NaUziNI4ebeIAyQfIq9BdKoX2064Mt8+sk77cUxjbB6hozKwEW5oxL EsAFaYqr2ck26Hq4Alyd+K/fMJs+sytFfWjbqUwRI69JKnVfx9v6lSppX g==; X-IronPort-AV: E=McAfee;i="6400,9594,10385"; a="341981777" X-IronPort-AV: E=Sophos;i="5.92,211,1650956400"; d="scan'208";a="341981777" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jun 2022 20:03:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,211,1650956400"; d="scan'208";a="677308244" Received: from dpdk-zhirun-dev.sh.intel.com ([10.67.110.172]) by FMSMGA003.fm.intel.com with ESMTP; 21 Jun 2022 20:03:46 -0700 From: Zhirun Yan To: dev@dpdk.org, qi.z.zhang@intel.com, qiming.yang@intel.com Cc: xiao.w.wang@intel.com, Zhirun Yan Subject: [PATCH v1 1/3] net/ice/base: extend VXLAN type with inner pattern for FDIR Date: Wed, 22 Jun 2022 11:00:30 +0800 Message-Id: <20220622030032.474770-2-zhirun.yan@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220622030032.474770-1-zhirun.yan@intel.com> References: <20220622030032.474770-1-zhirun.yan@intel.com> MIME-Version: 1.0 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 When offload VXLAN rule only with inner IPv4 layer, we expect to hit a group flow include UDP/TCP/SCTP. The dummy packet of this flow type is specified with inner UDP type. This patch changed the inner IPv4 protocol type to a reserved value, then it could cover the inner UDP/TCP/SCTP. Signed-off-by: Zhirun Yan Acked-by: Qi Zhang --- drivers/net/ice/base/ice_fdir.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/net/ice/base/ice_fdir.c b/drivers/net/ice/base/ice_fdir.c index ae76361102..6dbd70abaa 100644 --- a/drivers/net/ice/base/ice_fdir.c +++ b/drivers/net/ice/base/ice_fdir.c @@ -1929,7 +1929,7 @@ static const u8 ice_fdir_ip4_tun_pkt[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x45, 0x00, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, - 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x40, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; @@ -3654,8 +3654,6 @@ ice_fdir_get_gen_prgm_pkt(struct ice_hw *hw, struct ice_fdir_fltr *input, input->ip.v4.dst_ip); ice_pkt_insert_u8(loc, ICE_IPV4_TOS_OFFSET, input->ip.v4.tos); ice_pkt_insert_u8(loc, ICE_IPV4_TTL_OFFSET, input->ip.v4.ttl); - ice_pkt_insert_u8(loc, ICE_IPV4_PROTO_OFFSET, - input->ip.v4.proto); ice_pkt_insert_mac_addr(loc, input->ext_data.dst_mac); ice_pkt_insert_mac_addr(loc + ETH_ALEN, input->ext_data.src_mac);