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 C754B45501; Wed, 26 Jun 2024 14:00:16 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 64882433E0; Wed, 26 Jun 2024 13:55:55 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id 3EE3F42E95 for ; Wed, 26 Jun 2024 13:44:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402259; x=1750938259; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=by0qz56KBeGthYOYED9ULeEdhlwIsd+L1kLRVNtEBOs=; b=Mv03xfToZlBa2KdI7/LHN/lDVD6MCxX6sQDw6V+U4nZya84+zpZuZeR2 CGhdEOJSW1zN6x+rfCXRcnrYvQhOwOSwxaYq56/r95ryO2qJzqk5ET9nM hAlLGMDd5IF4YLWAf0kKPMHbTBrn/zT+u4xVA2tdgxdiXStXXe7A1Tc1J 3UyXwE0T6lg1/WUyH79Scg4DGq863yFFALB34tzRRW85a7HjpQk1YbhnK Sq99WbM8KDL0cIOGYG3AakrbeXfFerYR5ie8KGIPRUb33NpP7iN836mNu eD+KLlWqDBwN0GaDpX3iqdiUOLF9AMFYlI/+eK3BCOOrUHrQiD2x7GN53 w==; X-CSE-ConnectionGUID: IgefAEgGThutSzSARdyaBw== X-CSE-MsgGUID: 4mjynUFBRZO4M9WOKZoNjQ== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979425" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979425" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:44:18 -0700 X-CSE-ConnectionGUID: FK+UZfDZTwukvCQBOY3uPA== X-CSE-MsgGUID: AtLE9MeVQByDGQL0a57zPQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43873928" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:44:18 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Pawel Sobczyk , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 047/103] net/ice/base: add Floating VEB support Date: Wed, 26 Jun 2024 12:41:35 +0100 Message-ID: <61fed75ada3f5cd4bcc727d12a16eb9bd154fe7d.1719401848.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: 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: Pawel Sobczyk 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 153425bf42..54a42d2777 100644 --- a/drivers/net/ice/base/ice_switch.c +++ b/drivers/net/ice/base/ice_switch.c @@ -3964,8 +3964,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 184e30f226..ec4a63819c 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