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 0D7694404F; Wed, 12 Jun 2024 17:06:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1A411410FD; Wed, 12 Jun 2024 17:03:44 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id A34B640ED9 for ; Wed, 12 Jun 2024 17:03:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204621; x=1749740621; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tZKPye+ryvul1ZlHNCtmFr5lWUO/RCZi2CZEz8eJwy8=; b=gXO8Pj4IbKDtaI/NEk0oVMhtMJBJwmc4GrzyopZqNDSSTIf84BMu0eRD XUrMzDC8CWdfwhnJFqwE7JqqGsGcwBKMC1NTyHXcTHRPQOxO/B95c6y99 2py0inXujVVofgkOT3mzAuzEOl/mWiqibwYWHOPJ39h8D2jeCb/SWnWhZ IiMVBVs3/FUaL7BlRo9OKlfFbb/7JPfaZkr/7OA5ij5GeRkfyxCHzk1Tf 23mDp2o5lq3Ez84TSsXxlJX5IzxN0cNgKqRO8RQwnqv+ZCJQtwuNpa2gt aQ9WtkOF0RP7OvgBGMJdcugNxQxJC5Pq4xBYfQb/D8d8troO3t2pzZM5i Q==; X-CSE-ConnectionGUID: e5TBciklR9W3oZOCf7KScg== X-CSE-MsgGUID: EXOJjxRnQ6WTWTNSoRYmbQ== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459171" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459171" 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:03:39 -0700 X-CSE-ConnectionGUID: e4vc7jg3S9a4sQRgRI1X2g== X-CSE-MsgGUID: YZkbCVjwRZa+QZKLGxMSFA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39924906" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:03:38 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Dawid Zielinski Subject: [PATCH v2 014/148] net/ice/base: update interface in ice_parse_common_caps Date: Wed, 12 Jun 2024 16:00:08 +0100 Message-ID: <0006065d0d094414596082969c3a88c6e644ace1.1718204528.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 New flag for external topology devices for different types of versioning. Signed-off-by: Dawid Zielinski Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_common.c | 6 ++++++ drivers/net/ice/base/ice_type.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 314d1bffb4..9b08a10022 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -2470,6 +2470,8 @@ ice_parse_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps, (phys_id & ICE_EXT_TOPO_DEV_IMG_LOAD_EN) != 0; caps->ext_topo_dev_img_prog_en[index] = (phys_id & ICE_EXT_TOPO_DEV_IMG_PROG_EN) != 0; + caps->ext_topo_dev_img_ver_schema[index] = + (phys_id & ICE_EXT_TOPO_DEV_IMG_VER_SCHEMA) != 0; ice_debug(hw, ICE_DBG_INIT, "%s: ext_topo_dev_img_ver_high[%d] = %d\n", prefix, index, @@ -2490,6 +2492,10 @@ ice_parse_common_caps(struct ice_hw *hw, struct ice_hw_common_caps *caps, "%s: ext_topo_dev_img_prog_en[%d] = %d\n", prefix, index, caps->ext_topo_dev_img_prog_en[index]); + ice_debug(hw, ICE_DBG_INIT, + "%s: ext_topo_dev_img_ver_schema[%d] = %d\n", + prefix, index, + caps->ext_topo_dev_img_ver_schema[index]); break; } case ICE_AQC_CAPS_TX_SCHED_TOPO_COMP_MODE: diff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h index c7ca62bea0..b2f093c84b 100644 --- a/drivers/net/ice/base/ice_type.h +++ b/drivers/net/ice/base/ice_type.h @@ -716,6 +716,8 @@ struct ice_hw_common_caps { #define ICE_EXT_TOPO_DEV_IMG_LOAD_EN BIT(0) bool ext_topo_dev_img_prog_en[ICE_EXT_TOPO_DEV_IMG_COUNT]; #define ICE_EXT_TOPO_DEV_IMG_PROG_EN BIT(1) + bool ext_topo_dev_img_ver_schema[ICE_EXT_TOPO_DEV_IMG_COUNT]; +#define ICE_EXT_TOPO_DEV_IMG_VER_SCHEMA BIT(2) bool tx_sched_topo_comp_mode_en; }; -- 2.43.0