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 41673A0A0D; Mon, 1 Feb 2021 06:06:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 07D3416068C; Mon, 1 Feb 2021 06:06:46 +0100 (CET) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id A6B6140693 for ; Mon, 1 Feb 2021 06:06:43 +0100 (CET) IronPort-SDR: FbZlxnRvSvOZ/FxYMLyG0/kdumDTztrty0jkdvSfYqqVyp8N/J5WmXVm1BAxWCWpFqIKpG8Ir0 JqYlKjobgdyg== X-IronPort-AV: E=McAfee;i="6000,8403,9881"; a="180779711" X-IronPort-AV: E=Sophos;i="5.79,391,1602572400"; d="scan'208";a="180779711" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Jan 2021 21:06:42 -0800 IronPort-SDR: ypwxdTy5mKWF91/gz7wboandW1n2DHjzzP4KQ7YedWcyOtpIFBgwGqLlDEBLyikoM8FaD7XEig Hu4xy9wdJQFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,391,1602572400"; d="scan'208";a="390691555" Received: from dpdk-xuanding-dev2.sh.intel.com ([10.67.119.124]) by orsmga008.jf.intel.com with ESMTP; 31 Jan 2021 21:06:40 -0800 From: Xuan Ding To: qi.z.zhang@intel.com, jingjing.wu@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, Xuan Ding Date: Mon, 1 Feb 2021 04:53:02 +0000 Message-Id: <20210201045302.55059-1-xuan.ding@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH] net/ice: fix eth rss type checking 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" For pattern MAC_PPPOE_IPV4/6, add ETH_RSS_ETH into insput_set_mask to fix rss rule cannot be created when set eth as rss type. Fixes: 0d84f86c3022("net/ice: fix GTPU header parsing") Signed-off-by: Xuan Ding --- drivers/net/ice/ice_hash.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/net/ice/ice_hash.c b/drivers/net/ice/ice_hash.c index aee4761625..ff0c55b4da 100644 --- a/drivers/net/ice/ice_hash.c +++ b/drivers/net/ice/ice_hash.c @@ -424,24 +424,24 @@ struct ice_rss_hash_cfg empty_tmplt = { #define ICE_RSS_TYPE_GTPU_IPV6_TCP (ICE_RSS_TYPE_INNER_IPV6_TCP | \ ETH_RSS_GTPU) +/* PPPOE*/ +#define ICE_RSS_TYPE_PPPOE (ETH_RSS_ETH | ETH_RSS_PPPOE) + /* PPPOE IPv4 */ #define ICE_RSS_TYPE_PPPOE_IPV4 (ICE_RSS_TYPE_INNER_IPV4 | \ - ETH_RSS_PPPOE) + ICE_RSS_TYPE_PPPOE) #define ICE_RSS_TYPE_PPPOE_IPV4_UDP (ICE_RSS_TYPE_INNER_IPV4_UDP | \ - ETH_RSS_PPPOE) + ICE_RSS_TYPE_PPPOE) #define ICE_RSS_TYPE_PPPOE_IPV4_TCP (ICE_RSS_TYPE_INNER_IPV4_TCP | \ - ETH_RSS_PPPOE) + ICE_RSS_TYPE_PPPOE) /* PPPOE IPv6 */ #define ICE_RSS_TYPE_PPPOE_IPV6 (ICE_RSS_TYPE_INNER_IPV6 | \ - ETH_RSS_PPPOE) + ICE_RSS_TYPE_PPPOE) #define ICE_RSS_TYPE_PPPOE_IPV6_UDP (ICE_RSS_TYPE_INNER_IPV6_UDP | \ - ETH_RSS_PPPOE) + ICE_RSS_TYPE_PPPOE) #define ICE_RSS_TYPE_PPPOE_IPV6_TCP (ICE_RSS_TYPE_INNER_IPV6_TCP | \ - ETH_RSS_PPPOE) - -/* PPPOE*/ -#define ICE_RSS_TYPE_PPPOE (ETH_RSS_ETH | ETH_RSS_PPPOE) + ICE_RSS_TYPE_PPPOE) /* ESP, AH, L2TPV3 and PFCP */ #define ICE_RSS_TYPE_IPV4_ESP (ETH_RSS_ESP | ETH_RSS_IPV4) -- 2.17.1