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 43169A0093; Fri, 29 Apr 2022 03:23:37 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6478B4282B; Fri, 29 Apr 2022 03:23:16 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 8C63942848 for ; Fri, 29 Apr 2022 03:23:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651195391; x=1682731391; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=pxI5262n7+wVmFVcDK3A0WFhBnN4FQSx+hEuzYQxjjg=; b=gAAJIgBt/TFYOPi64Nw1URgRdVSxUNJ7ecxfS78t9KR14QzWiCyQlmtD wYbP3AMVbmPfSAsjIy+nWgGeJysAR5jWdwCG+7j8V6qOSBwcMWQb0pq/C IDg/u/vUU7RVHDwrg7B+X9wZF6Ulb3pRoEa+H5gQ7F/wpwXzdcJEiyiyG vaIIDJ7tnzrKLeFguvFr4hOk40Fu8bIjhmchWrC+VWtQI8q43jNlfESHD 0EGvs5oxDCm4MQicJTwU4zZET92U0G8bebx5UdXS0OasQ0qR1Mcvr9LvQ k1sMUPIM+87H0ooYFv82NjI8c3BairqBP5miYFRWk/41QrJOpoz4iCDfZ w==; X-IronPort-AV: E=McAfee;i="6400,9594,10331"; a="248419761" X-IronPort-AV: E=Sophos;i="5.91,296,1647327600"; d="scan'208";a="248419761" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 18:23:10 -0700 X-IronPort-AV: E=Sophos;i="5.91,296,1647327600"; d="scan'208";a="581768148" Received: from intel-cd-odc-kevin.cd.intel.com ([10.240.178.195]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2022 18:22:43 -0700 From: Kevin Liu To: dev@dpdk.org Cc: qiming.yang@intel.com, qi.z.zhang@intel.com, stevex.yang@intel.com, Kevin Liu Subject: [PATCH v7 11/12] net/ice: add implement power management Date: Fri, 29 Apr 2022 09:19:57 +0000 Message-Id: <20220429091958.3103384-12-kevinx.liu@intel.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220429091958.3103384-1-kevinx.liu@intel.com> References: <20220427181301.1414196-1-kevinx.liu@intel.com> <20220429091958.3103384-1-kevinx.liu@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 Implement support for the power management API by implementing a 'get_monitor_addr' function that will return an address of an RX ring's status bit. Signed-off-by: Kevin Liu --- doc/guides/nics/features/ice_dcf.ini | 1 + drivers/net/ice/ice_dcf_ethdev.c | 1 + 2 files changed, 2 insertions(+) diff --git a/doc/guides/nics/features/ice_dcf.ini b/doc/guides/nics/features/ice_dcf.ini index 54ea7f150c..3b11622d4c 100644 --- a/doc/guides/nics/features/ice_dcf.ini +++ b/doc/guides/nics/features/ice_dcf.ini @@ -25,6 +25,7 @@ VLAN filter = Y VLAN offload = Y Extended stats = Y Basic stats = Y +Power mgmt address monitor = Y Linux = Y x86-32 = Y x86-64 = Y diff --git a/drivers/net/ice/ice_dcf_ethdev.c b/drivers/net/ice/ice_dcf_ethdev.c index 9217392d04..236c0395e0 100644 --- a/drivers/net/ice/ice_dcf_ethdev.c +++ b/drivers/net/ice/ice_dcf_ethdev.c @@ -1700,6 +1700,7 @@ static const struct eth_dev_ops ice_dcf_eth_dev_ops = { .tx_queue_stop = ice_dcf_tx_queue_stop, .rxq_info_get = ice_rxq_info_get, .txq_info_get = ice_txq_info_get, + .get_monitor_addr = ice_get_monitor_addr, .link_update = ice_dcf_link_update, .stats_get = ice_dcf_stats_get, .stats_reset = ice_dcf_stats_reset, -- 2.33.1