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 3F6FBA00C3; Mon, 15 Aug 2022 01:27:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08F0A42D18; Mon, 15 Aug 2022 01:24:02 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id A115F42B96 for ; Mon, 15 Aug 2022 01:23:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1660519439; x=1692055439; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WAp+i8yR7eyyP9OOtsGsLrNwEQsuhGdS5EuVoyZ2P/c=; b=XMxzrHBpaq6s2x15bbg6HET80wMzxHbhvytcGaU7PnbTyeZiXdSTqdCr 3whXzx/1sTZOaCJVhT5Z1o4xl2ut8McYRI9vhNJ+J9jpUuzs3CNMn7PoY LeNLKPY+2jvbZDKMJBfVi49uUmIyWgYweWHTQz1pkjvKMLSZSxcoJN471 Cjgtil1xNKUDgMF4tUVUzddRrRMrMvGVO5jmkIK3AdxNy6tE/ws2b+2iN uHcxMhAeY/UfO9InuZCB0K0X0eyANzidOIx8rOLM0Wtragd0EneJ1mJVB uofSpfdxo5muk5dwqGNSgrS45Zy1JNvEd9yXayggvpfCX55WwqirYfCUH w==; X-IronPort-AV: E=McAfee;i="6400,9594,10439"; a="274914519" X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="274914519" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Aug 2022 16:23:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,237,1654585200"; d="scan'208";a="635283350" Received: from dpdk-qzhan15-test02.sh.intel.com ([10.67.115.4]) by orsmga008.jf.intel.com with ESMTP; 14 Aug 2022 16:23:58 -0700 From: Qi Zhang To: qiming.yang@intel.com Cc: dev@dpdk.org, Qi Zhang , Lukasz Kupczak Subject: [PATCH v2 63/70] net/ice/base: handle default VSI lookup type Date: Mon, 15 Aug 2022 03:31:59 -0400 Message-Id: <20220815073206.2917968-64-qi.z.zhang@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220815073206.2917968-1-qi.z.zhang@intel.com> References: <20220815071306.2910599-1-qi.z.zhang@intel.com> <20220815073206.2917968-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