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 7BB76454EF; Tue, 25 Jun 2024 13:17:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9231D42D66; Tue, 25 Jun 2024 13:15:42 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by mails.dpdk.org (Postfix) with ESMTP id 5590D42759 for ; Tue, 25 Jun 2024 13:15:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719314121; x=1750850121; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=dMEmlit8VU7KLR65DxUafq+pCwBPK8YtC5mOxZ4G15E=; b=gsprR5YvwkdyrWeXR0IvRcZGC5Rn7L2iVZTetfdNTUrfxXOdX5TQBi6x +KZrHkdWUPRfGzBFvum6dYttffwk7/U0t1HJcJkhCXFfK8eXrcjBiNtBO XqjBouo7tnzibpkhL4r0YJXNw9FWF7BR7PBEzs5c9/830WzWxotS6uRNu ZMnInzINHspxVSAHxiFaHvtevEx00eTrHytSIu1k9VhjZu5wSq2sjIsOP mRC6E3XUlRtqvFotlyhwlQqSAtttWozSeeZf8fe5Gm0aUzfCiQ7X3rXvy AKH5TY3a+pO/fWVRtZ/gPSxWxr8mIHBtscSommggEk03S72KLCkcPeUDK g==; X-CSE-ConnectionGUID: 2Dz/PYMpRVi++ngngbjXUQ== X-CSE-MsgGUID: 32ApFm0mQseZEo0HoY/rWQ== X-IronPort-AV: E=McAfee;i="6700,10204,11113"; a="16080092" X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="16080092" 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:15:20 -0700 X-CSE-ConnectionGUID: xu8kH7GpTee3crf0xAQcMw== X-CSE-MsgGUID: 7cvfhEXGSimXZIoBDC+UHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,263,1712646000"; d="scan'208";a="43718950" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 25 Jun 2024 04:15:20 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Dawid Zielinski , bruce.richardson@intel.com, ian.stokes@intel.com Subject: [PATCH v3 013/129] net/ice/base: update interface in ice_parse_common_caps Date: Tue, 25 Jun 2024 12:12:18 +0100 Message-ID: <5c36db0bcc9517cd24ef59bdf4c08c0b534ada3e.1719313663.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: Dawid Zielinski 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 9ac0521f1a..ebbe8cde1d 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