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 AF43C4404F; Wed, 12 Jun 2024 17:17:40 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 71B37427B2; Wed, 12 Jun 2024 17:05:45 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 1F0B742ED0 for ; Wed, 12 Jun 2024 17:05:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204739; x=1749740739; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+2RpjpDMKhXwCKhjZaLec++ZOMkO5MU4CZenqI80KJk=; b=FgVM1dzwXzEjd2fHTgiQ2U5/IvJtjeaHBIYLc/ze+qusGrj26o5/meOr fGj/+rYNriXqmMxT72LRSTmHWyffZHNqsKzgr256ePOQgeSxxLex2F92W xwiWEnnTK+ZomBOqTRhslbaKq6egSAFd8BpGmGRK2WvmzSEdySYhMWZpi 5bFZJdDybDKCoaxcvxKGdgYHAvRWb/qwyKz/fwRu23sOyejJYRZGgpAwp YYyEFsM0sv38pLpH6JrW937kgp0Acbr/JbQ5Q1ABQTZyHRwwH6MuaaxxZ 7EItfQDVi4zN7XxDFz36RSPEbsd8CRKQ2x3+VlCFDVheH9hDtxoFhAZBz g==; X-CSE-ConnectionGUID: j7XWaE0EQfazNM2VEuBDng== X-CSE-MsgGUID: dZoc+L72SMaR22wmFLT9AA== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459741" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459741" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 08:05:37 -0700 X-CSE-ConnectionGUID: aaXaOzyGQ6ete2Sna8otsg== X-CSE-MsgGUID: 28+tDzK7Q6euOTOG9ma41A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925596" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:05:36 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Pawel Sobczyk Subject: [PATCH v2 085/148] net/ice/base: add Floating VEB support Date: Wed, 12 Jun 2024 16:01:19 +0100 Message-ID: <00a9d439e440cd91cb05d093b1bc120acec521f8.1718204529.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: <20240430154014.1026-1-ian.stokes@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 From: Ian Stokes Added sw_id variables to ice_fltr_info struct and disable lan_en flag for Floating VEB VSIs. Signed-off-by: Pawel Sobczyk Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_switch.c | 6 ++++-- drivers/net/ice/base/ice_switch.h | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c index 051cf087f5..2992b733c9 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -4153,8 +4153,10 @@ static void ice_fill_sw_info(struct ice_hw *hw, struct ice_fltr_info *fi) (fi->lkup_type == ICE_SW_LKUP_MAC && !IS_UNICAST_ETHER_ADDR(fi->l_data.mac.mac_addr)) || (fi->lkup_type == ICE_SW_LKUP_MAC_VLAN && - !IS_UNICAST_ETHER_ADDR(fi->l_data.mac.mac_addr))) - fi->lan_en = true; + !IS_UNICAST_ETHER_ADDR(fi->l_data.mac.mac_addr))) { + if (!fi->fltVeb_en) + fi->lan_en = true; + } } else { fi->lan_en = true; } diff --git a/drivers/net/ice/base/ice_switch.h b/drivers/net/ice/base/ice_switch.h index 939fa6df3c..bba1149528 100644 --- a/drivers/net/ice/base/ice_switch.h +++ b/drivers/net/ice/base/ice_switch.h @@ -146,6 +146,7 @@ struct ice_fltr_info { union { struct { u8 mac_addr[ETH_ALEN]; + u16 sw_id; } mac; struct { u8 mac_addr[ETH_ALEN]; @@ -155,6 +156,7 @@ struct ice_fltr_info { u16 vlan_id; u16 tpid; u8 tpid_valid; + u16 sw_id; } vlan; /* Set lkup_type as ICE_SW_LKUP_ETHERTYPE * if just using ethertype as filter. Set lkup_type as @@ -192,6 +194,7 @@ struct ice_fltr_info { /* Rule creations populate these indicators basing on the switch type */ u8 lb_en; /* Indicate if packet can be looped back */ u8 lan_en; /* Indicate if packet can be forwarded to the uplink */ + u8 fltVeb_en; /* Indicate if VSI is connected to floating VEB */ }; struct ice_update_recipe_lkup_idx_params { -- 2.43.0