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 C1EA945500; Wed, 26 Jun 2024 13:59:45 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C2375433C8; Wed, 26 Jun 2024 13:55:50 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by mails.dpdk.org (Postfix) with ESMTP id D41EA42E95 for ; Wed, 26 Jun 2024 13:44:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1719402253; x=1750938253; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=09NpoROz997tbnqQmXJNVNVMfY53aIWb2NfyFacfres=; b=HXrxe55zujzbvgMrNt8ryHVbnuqFhVrys/FZTDzrmRaMYHzYrfoRXoWd s1k/3cv6996wqYSOOfPf/Tl9HvpjGQ0nT5imcs0mregsKA1tlQxOAJRU0 vXQv/8/ft/kBK6BZQgtoy72hyIEZh/BUY0/YvcmDNQGiChv18IZE7xPW9 AqbL+KL8yve1J7O5qxIZlj+Ugsvi+m7xBI/YDO7c0lRe+c7pdYH5+YZ8w VCKTzJmd8C3LxS5x5Hirw3z6UiBXHNXDp3cV8rPCAtvJEgbDYJKhmHfIJ qONWixFLArSl+acXzso/qAhwqUQq/dLjJbP8rq9Lx8VpcwPdSCT70IiBC A==; X-CSE-ConnectionGUID: pmnRpBViTEmedp2csHcB6Q== X-CSE-MsgGUID: tL2uUttvRKe7wrEYt5XN/Q== X-IronPort-AV: E=McAfee;i="6700,10204,11114"; a="38979411" X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="38979411" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2024 04:44:12 -0700 X-CSE-ConnectionGUID: O/I7176rRZeO5j6cRo1+Og== X-CSE-MsgGUID: +OPfyyLKSM2xEe80MjI/WA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,266,1712646000"; d="scan'208";a="43873902" Received: from unknown (HELO silpixa00401119.ir.intel.com) ([10.55.129.167]) by orviesa010.jf.intel.com with ESMTP; 26 Jun 2024 04:44:11 -0700 From: Anatoly Burakov To: dev@dpdk.org Cc: Dawid Zielinski , ian.stokes@intel.com, bruce.richardson@intel.com Subject: [PATCH v4 043/103] net/ice/base: copy output IO params from command descriptor Date: Wed, 26 Jun 2024 12:41:31 +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: Dawid Zielinski Coppied output IO params returned from get netlist node pin command descriptor so SW could use it. Fixed defines related to output IO params. Signed-off-by: Dawid Zielinski Signed-off-by: Ian Stokes --- drivers/net/ice/base/ice_adminq_cmd.h | 4 ++-- drivers/net/ice/base/ice_common.c | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/ice/base/ice_adminq_cmd.h b/drivers/net/ice/base/ice_adminq_cmd.h index f235bfb2fe..fdff750b2f 100644 --- a/drivers/net/ice/base/ice_adminq_cmd.h +++ b/drivers/net/ice/base/ice_adminq_cmd.h @@ -1795,11 +1795,11 @@ struct ice_aqc_get_link_topo_pin { u8 output_io_params; #define ICE_AQC_LINK_TOPO_OUTPUT_IO_FUNC_S 0 #define ICE_AQC_LINK_TOPO_OUTPUT_IO_FUNC_M \ - (0x1F << \ ICE_AQC_LINK_TOPO_INPUT_IO_FUNC_NUM_S) + (0x1F << ICE_AQC_LINK_TOPO_OUTPUT_IO_FUNC_S) /* Use ICE_AQC_LINK_TOPO_IO_FUNC_* for the non-numerical options */ #define ICE_AQC_LINK_TOPO_OUTPUT_IO_TYPE_S 5 #define ICE_AQC_LINK_TOPO_OUTPUT_IO_TYPE_M \ - (0x7 << ICE_AQC_LINK_TOPO_INPUT_IO_TYPE_S) + (0x7 << ICE_AQC_LINK_TOPO_OUTPUT_IO_TYPE_S) /* Use ICE_AQC_LINK_TOPO_NODE_TYPE_* for the type values */ u8 output_io_flags; #define ICE_AQC_LINK_TOPO_OUTPUT_SPEED_S 0 diff --git a/drivers/net/ice/base/ice_common.c b/drivers/net/ice/base/ice_common.c index ce2c3f878c..480708b2f9 100644 --- a/drivers/net/ice/base/ice_common.c +++ b/drivers/net/ice/base/ice_common.c @@ -588,6 +588,9 @@ ice_aq_get_netlist_node_pin(struct ice_hw *hw, *node_handle = LE16_TO_CPU(desc.params.get_link_topo_pin.addr.handle); + cmd->output_io_params = desc.params.get_link_topo_pin.output_io_params; + cmd->output_io_flags = desc.params.get_link_topo_pin.output_io_flags; + return 0; } -- 2.43.0