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 0A8AD45895; Thu, 29 Aug 2024 11:00:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D54442D45; Thu, 29 Aug 2024 11:00:32 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by mails.dpdk.org (Postfix) with ESMTP id E724F42C24 for ; Thu, 29 Aug 2024 11:00:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724922030; x=1756458030; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=IgVLEZ+lMWIVxsUprRPUzM8wDcbtfQgBiEOChHw3jJE=; b=YEZWYKEN+Kh8jqYPdBADcKvAn/H9Bma+XjZcq5WJB/GPWay3EhEypSNE clJ1HfJNfGfW+FhwcGoqdTRXBHF6iNqN4ysLWEiridjTygUpt/41YpI1y x0Kel+oQlKOKv5LQLpHDuhLzBFkAU2UsVeXUWOhcgoCJO7hvtySSYHGhx d4lOqRriFF3LxCGngCV8WaVkZ92zB49Ww+GzI+qNl66BUReRuMu3cLQxP phKdCkCkx0NQNph4J8yUGEsy61PrZC6ClnQI260Cc5TJRIGYKeMi+3E6t I4oPY3GSTxqrGdhtHcU2Ta0eGQYKeI5GvI+KZLazHqDNTgod4y3TIzud3 w==; X-CSE-ConnectionGUID: Oj7PcdpqTnm+wRKvbySi3w== X-CSE-MsgGUID: YfpsWaS/QFyKtYq2iTHtKw== X-IronPort-AV: E=McAfee;i="6700,10204,11178"; a="23663422" X-IronPort-AV: E=Sophos;i="6.10,185,1719903600"; d="scan'208";a="23663422" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Aug 2024 02:00:30 -0700 X-CSE-ConnectionGUID: RolEKn2USEulsl1zv7n62g== X-CSE-MsgGUID: nBMYeStkTAqovTk4s4z0nA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,185,1719903600"; d="scan'208";a="64202940" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa008.jf.intel.com with ESMTP; 29 Aug 2024 02:00:28 -0700 From: Anatoly Burakov To: dev@dpdk.org, Piotr Kwapulinski , Jedrzej Jagielski , Carolyn Wyborny Subject: [PATCH v1 03/15] net/ixgbe/base: add missing E610 definitions Date: Thu, 29 Aug 2024 10:00:08 +0100 Message-ID: <3691053e7de595aebf3a5280275d6a5d919a1ec0.1724921977.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.43.5 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 When adding support for E610 bringup, some definitions and code paths were accidentally omitted due to the way the shared driver snapshot was created. Add missing definitions and code paths. Fixes: 316637762a5f ("net/ixgbe/base: enable E610 device") Signed-off-by: Anatoly Burakov --- drivers/net/ixgbe/base/ixgbe_api.c | 5 +++++ drivers/net/ixgbe/base/ixgbe_type.h | 2 ++ drivers/net/ixgbe/base/ixgbe_type_e610.h | 3 +++ 3 files changed, 10 insertions(+) diff --git a/drivers/net/ixgbe/base/ixgbe_api.c b/drivers/net/ixgbe/base/ixgbe_api.c index c8f9a6d9f1..b4920867bc 100644 --- a/drivers/net/ixgbe/base/ixgbe_api.c +++ b/drivers/net/ixgbe/base/ixgbe_api.c @@ -87,6 +87,7 @@ s32 ixgbe_init_shared_code(struct ixgbe_hw *hw) case ixgbe_mac_X550_vf: case ixgbe_mac_X550EM_x_vf: case ixgbe_mac_X550EM_a_vf: + case ixgbe_mac_E610_vf: status = ixgbe_init_ops_vf(hw); break; case ixgbe_mac_E610: @@ -219,6 +220,10 @@ s32 ixgbe_set_mac_type(struct ixgbe_hw *hw) hw->mac.type = ixgbe_mac_E610; hw->mvals = ixgbe_mvals_X550EM_a; break; + case IXGBE_DEV_ID_E610_VF: + hw->mac.type = ixgbe_mac_E610_vf; + hw->mvals = ixgbe_mvals_X550EM_a; + break; default: ret_val = IXGBE_ERR_DEVICE_NOT_SUPPORTED; ERROR_REPORT2(IXGBE_ERROR_UNSUPPORTED, diff --git a/drivers/net/ixgbe/base/ixgbe_type.h b/drivers/net/ixgbe/base/ixgbe_type.h index d86049426e..f6d5052c65 100644 --- a/drivers/net/ixgbe/base/ixgbe_type.h +++ b/drivers/net/ixgbe/base/ixgbe_type.h @@ -130,6 +130,7 @@ #define IXGBE_DEV_ID_E610_10G_T 0x57B0 #define IXGBE_DEV_ID_E610_2_5G_T 0x57B1 #define IXGBE_DEV_ID_E610_SGMII 0x57B2 +#define IXGBE_DEV_ID_E610_VF 0x57AD #define IXGBE_CAT(r, m) IXGBE_##r##m @@ -3676,6 +3677,7 @@ enum ixgbe_mac_type { ixgbe_mac_X550EM_x_vf, ixgbe_mac_X550EM_a_vf, ixgbe_mac_E610, + ixgbe_mac_E610_vf, ixgbe_num_macs }; diff --git a/drivers/net/ixgbe/base/ixgbe_type_e610.h b/drivers/net/ixgbe/base/ixgbe_type_e610.h index dcb874e42e..ab57852f19 100644 --- a/drivers/net/ixgbe/base/ixgbe_type_e610.h +++ b/drivers/net/ixgbe/base/ixgbe_type_e610.h @@ -2080,6 +2080,8 @@ struct ixgbe_orom_civd_info { /* Function specific capabilities */ struct ixgbe_hw_func_caps { struct ixgbe_hw_common_caps common_cap; + u32 num_allocd_vfs; /* Number of allocated VFs */ + u32 vf_base_id; /* Logical ID of the first VF */ u32 guar_num_vsi; struct ixgbe_ts_func_info ts_func_info; bool no_drop_policy_ena; @@ -2088,6 +2090,7 @@ struct ixgbe_hw_func_caps { /* Device wide capabilities */ struct ixgbe_hw_dev_caps { struct ixgbe_hw_common_caps common_cap; + u32 num_vfs_exposed; /* Total number of VFs exposed */ u32 num_vsi_allocd_to_host; /* Excluding EMP VSI */ u32 num_flow_director_fltr; /* Number of FD filters available */ struct ixgbe_ts_dev_info ts_dev_info; -- 2.43.5