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 81BAAA00C3; Mon, 15 Aug 2022 01:09:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3B75A42CBE; Mon, 15 Aug 2022 01:04:49 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 46E5442C4C for ; Mon, 15 Aug 2022 01:04: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=1660518287; x=1692054287; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WAp+i8yR7eyyP9OOtsGsLrNwEQsuhGdS5EuVoyZ2P/c=; b=MLwLbPfjvehMflYdP6LTZvbasO8N41NweKmDzhMcTstlxLw7OwuPFnBW prUe8bl434jCUYJ78Kxo4UrVJb9D/QyeO0LOVxwK4JJ24mXF23VOTzy4W nFT62fp3Zke729MOfORzLUPgjL8Qo2H3K5Eh78APfqzh333RV+9C0yB+Y 58NMmOp0RMm+aNYi5CuTzPfHPTegZjUth3u1lIkcLx/lzB5F4dbe0pogP ikl7HmLD2RrVuuDAESSjjnosYXScgATgdtjQajJFB7v/2yq1bbuSL0lPV bn0tQ7q7/u6COl4Jclvw4T9mbkBQ424UMgXmxW54zRoOXNNqzlyRPOvh9 A==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="293128812" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="293128812" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 16:04:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="934296958" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4]) by fmsmga005.fm.intel.com with ESMTP; 14 Aug 2022 16:04:45 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang , Lukasz Kupczak Subject: [PATCH 63/70] net/ice/base: handle default VSI lookup type Date: Mon, 15 Aug 2022 03:12:59 -0400 Message-Id: <20220815071306.2910599-64-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220815071306.2910599-1-qi.z.zhang@intel.com> References: <20220815071306.2910599-1-qi.z.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 ICE_SW_LKUP_DFLT is handled in ice_update_vsi_list_rule and ice_aq_alloc_free_vsi_list. Signed-off-by: Lukasz Kupczak Signed-off-by: Qi Zhang --- drivers/net/ice/base/ice_switch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 01441211ff..afc0fff84b 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -3181,6 +3181,7 @@ ice_aq_alloc_free_vsi_list(struct ice_hw *hw, u16 *vsi_list_id, lkup_type == ICE_SW_LKUP_ETHERTYPE_MAC || lkup_type == ICE_SW_LKUP_PROMISC || lkup_type == ICE_SW_LKUP_PROMISC_VLAN || + lkup_type == ICE_SW_LKUP_DFLT || lkup_type == ICE_SW_LKUP_LAST) { sw_buf->res_type = CPU_TO_LE16(ICE_AQC_RES_TYPE_VSI_LIST_REP); } else if (lkup_type == ICE_SW_LKUP_VLAN) { @@ -4095,6 +4096,7 @@ ice_update_vsi_list_rule(struct ice_hw *hw, u16 *vsi_handle_arr, u16 num_vsi, lkup_type == ICE_SW_LKUP_ETHERTYPE_MAC || lkup_type == ICE_SW_LKUP_PROMISC || lkup_type == ICE_SW_LKUP_PROMISC_VLAN || + lkup_type == ICE_SW_LKUP_DFLT || lkup_type == ICE_SW_LKUP_LAST) rule_type = remove ? ICE_AQC_SW_RULES_T_VSI_LIST_CLEAR : ICE_AQC_SW_RULES_T_VSI_LIST_SET; -- 2.31.1