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 489DA454EF; Tue, 25 Jun 2024 13:23:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EBF4B42FA7; Tue, 25 Jun 2024 13:18:15 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 5C89E42C24 for ; Tue, 25 Jun 2024 13:16:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314216; x=1750850216; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=j144dgHeUhNBtHRQ+NIcv/Q107u2V99A6ixiKcLtQn0=; b=IS07zqrY20LCF/gVQ66Cz29hLAYhTBFqFKLuu7CIzNeW3OZ/chfb5VNn pbrUnIpXIVr8iOqeEFpVNyn2AGyYWFOb9TvjoHVGY0+FK7JZyZ3ubqjJ9 z2jc3bds2CeiSxdHGk/DvsGQGKVypEaHDwzYXxEtEVGO3UsjiuO6ec6W2 f/KmVzjjJhD/oPxH/GFqk8bNtL4LxtBsfn8my7RCstqxeN7NVrLANGQjq C+E2ygjQ9wa+N1vkmSycPjtTuYmzUpwL0wPHoN9oApEQNjrE2VAG2zuiy ztPIjqkPZ9y2J7LUuP4IoqJEys4kvfLwULf2batwPSr6nwg66mR4AFcQw w==; X-CSE-ConnectionGUID: HQl4hWvXRFq+6GOJeB9GDg== X-CSE-MsgGUID: DlfJHjVmRZeguJWoNTELXA== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080328" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080328" Received: from orviesa009.jf.intel.com ([10.64.159.149]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2024 04:16:48 -0700 X-CSE-ConnectionGUID: XY9bJ7nmSQu92bVw0zXtWw== X-CSE-MsgGUID: c/NVvhtHRRWcfkefHnjmLg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43719384" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:16:48 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Pawel Sobczyk , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 067/129] net/ice/base: add Floating VEB support Date: Tue, 25 Jun 2024 12:13:12 +0100 Message-ID: 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 16104dbc71..030a415c44 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