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 78E114404F; Wed, 12 Jun 2024 17:12:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 59E1742DC3; Wed, 12 Jun 2024 17:04:39 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mails.dpdk.org (Postfix) with ESMTP id 8CEA4427E6 for ; Wed, 12 Jun 2024 17:04:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718204675; x=1749740675; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Uj2mU3jc9j3+S9VFVv+JHPBa48uZprdvWx82c/Kv8Eo=; b=Uy5mlqzgbrLtFVIgeqbwCjyGY1ozqHnSn0nDzDfQFbYKpXkCRR4PHcPl oHFOuk5cu2O3xYAghTksEVOcYJ/1iuosQ6yCys2XH1mhxJJvCuRJHF2Lh 8Xl2W5JLlpN32x8ZhS5TqPnnP0ZI0rLtn1TpHQWQ5PlrXgJ0P2JFQc273 7gUcBrazg9T6b0iYEmYC4XeKC/WvhtuKBkYWwExWq/Nef99PDGu1AfFUu LCE09Qt/6vv+75UPsB7jjpnfbKoZliMR5r/v/dMONRqBnxkAKd0EEAi2N gaJNRp0k6eTVUXRftZcQcD3uo5H1T0gNNtXgOTGnF1yTXXixs17LxWjRa Q==; X-CSE-ConnectionGUID: 1QW1sBCIQSuOrZ0gIIHLXw== X-CSE-MsgGUID: ax9z0DRlQtiZ4jr19lXNVg== X-IronPort-AV: E=McAfee;i="6700,10204,11101"; a="32459484" X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="32459484" 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:04:33 -0700 X-CSE-ConnectionGUID: 2mCJ4Df4SU2WbWVzJ3sxbA== X-CSE-MsgGUID: LMhaXhMWTpmZ5IXocvVmOw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,233,1712646000"; d="scan'208";a="39925226" Received: from silpixa00401119.ir.intel.com ([10.55.129.167]) by orviesa009.jf.intel.com with ESMTP; 12 Jun 2024 08:04:32 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Ian Stokes , bruce.richardson@intel.com, Prathisna Padmasanan Subject: [PATCH v2 047/148] net/ice/base: added informational message for NAC topology Date: Wed, 12 Jun 2024 16:00:41 +0100 Message-ID: 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 Use proper bitmask to verify primary/secondary mode instead of whole 'mode' field, which also includes other information. In the result, for Mode 2a for example, 'secondary' mode was always reported which was misleading. Signed-off-by: Prathisna Padmasanan Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index 45fea193da..62c68b6d73 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -2886,6 +2886,10 @@ ice_parse_nac_topo_dev_caps(struct ice_hw *hw, struct ice_hw_dev_caps *dev_p, dev_p->nac_topo.mode = LE32_TO_CPU(cap->number); dev_p->nac_topo.id = LE32_TO_CPU(cap->phys_id) & ICE_NAC_TOPO_ID_M; + ice_info(hw, "PF is configured in %s mode with IP instance ID %d\n", + (dev_p->nac_topo.mode & ICE_NAC_TOPO_PRIMARY_M) ? + "primary" : "secondary", dev_p->nac_topo.id); + ice_debug(hw, ICE_DBG_INIT, "dev caps: nac topology is_primary = %d\n", !!(dev_p->nac_topo.mode & ICE_NAC_TOPO_PRIMARY_M)); ice_debug(hw, ICE_DBG_INIT, "dev caps: nac topology is_dual = %d\n", -- 2.43.0