From patchwork Mon Apr 26 13:49:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Burakov, Anatoly" X-Patchwork-Id: 92182 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3344DA0548; Mon, 26 Apr 2021 15:49:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9A69741104; Mon, 26 Apr 2021 15:49:18 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 4196640140 for ; Mon, 26 Apr 2021 15:49:17 +0200 (CEST) IronPort-SDR: S9mAy2IppSYdKMSm3Hp4iVWo2SJ2LK60v0MBucs3yzW1VrdRNuX14t2Uija79RLjCJXQ/efOdu 4uQyciV6eEkA== X-IronPort-AV: E=McAfee;i="6200,9189,9966"; a="183818045" X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="183818045" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2021 06:49:15 -0700 IronPort-SDR: VfVVB126TgVtiIBi7GPu26nd5fz8Cbt9odFUsZc02Ci530VgmBYYXcm8VDRmfiNo58CR87YhpF kW4Vi37IZdUg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="618616902" Received: from silpixa00399498.ir.intel.com (HELO silpixa00399498.ger.corp.intel.com) ([10.237.223.216]) by fmsmga005.fm.intel.com with ESMTP; 26 Apr 2021 06:49:13 -0700 From: Anatoly Burakov To: dev@dpdk.org, Jeff Guo , Haiyue Wang , Konstantin Ananyev , Liang Ma Cc: david.hunt@intel.com Date: Mon, 26 Apr 2021 13:49:11 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v1 1/2] net/ixgbe: allow get_monitor_addr for VF driver 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 Sender: "dev" When .get_monitor_addr API was introduced, it was implemented in the ixgbe driver, but only for the physical function; the virtual function portion of the driver does not support that API. Add the missing function pointer to VF device structure. Fixes: 3982b7967bb7 ("net/ixgbe: implement power management API") Signed-off-by: Anatoly Burakov Reviewed-by: David Hunt Acked-by: Haiyue Wang --- drivers/net/ixgbe/ixgbe_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index ff65145f55..6cca039a11 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -605,6 +605,7 @@ static const struct eth_dev_ops ixgbevf_eth_dev_ops = { .rss_hash_update = ixgbe_dev_rss_hash_update, .rss_hash_conf_get = ixgbe_dev_rss_hash_conf_get, .tx_done_cleanup = ixgbe_dev_tx_done_cleanup, + .get_monitor_addr = ixgbe_get_monitor_addr, }; /* store statistics names and its offset in stats structure */ From patchwork Mon Apr 26 13:49:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Burakov, Anatoly" X-Patchwork-Id: 92183 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C4FFFA0548; Mon, 26 Apr 2021 15:49:23 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5B9C411D4; Mon, 26 Apr 2021 15:49:20 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id DDBB040140 for ; Mon, 26 Apr 2021 15:49:17 +0200 (CEST) IronPort-SDR: naeRhZ45qZ1SawYbj4OPJdZr4Dqz3SpH/t5aJtmtwwzYwN7n/u74qrQwcek1qrSs075CZYxcCK IQRkC2tHKEmQ== X-IronPort-AV: E=McAfee;i="6200,9189,9966"; a="183818047" X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="183818047" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2021 06:49:17 -0700 IronPort-SDR: yo2W0frang19vXf9Hx/elVSaf9PUVBPsabj+fHlFLLrQmrjFHq6tkPw70ZCP63tyJaXNgpKVSi FG2/c2XPz2gg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="618616908" Received: from silpixa00399498.ir.intel.com (HELO silpixa00399498.ger.corp.intel.com) ([10.237.223.216]) by fmsmga005.fm.intel.com with ESMTP; 26 Apr 2021 06:49:15 -0700 From: Anatoly Burakov To: dev@dpdk.org, Beilei Xing , Jeff Guo , Konstantin Ananyev , Liang Ma Cc: david.hunt@intel.com Date: Mon, 26 Apr 2021 13:49:12 +0000 Message-Id: <03afe9c433efd69e5d90cdc39be5ac2ca174c630.1619444945.git.anatoly.burakov@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH v1 2/2] net/i40e: allow get_monitor_addr for VF driver 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 Sender: "dev" When .get_monitor_addr API was introduced, it was implemented in the i40e driver, but only for the physical function; the virtual function portion of the driver does not support that API. Add the missing function pointer to VF device structure. The i40e driver is not meant to use the VF portion any more, as currently i40e VF devices are supposed to be managed by iavf drier, but add this just in case it needs backporting later. Fixes: a683abf90a22 ("net/i40e: implement power management API") Signed-off-by: Anatoly Burakov Reviewed-by: David Hunt --- drivers/net/i40e/i40e_ethdev_vf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 3c258ba7cf..156ad9ab96 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -216,6 +216,7 @@ static const struct eth_dev_ops i40evf_eth_dev_ops = { .mtu_set = i40evf_dev_mtu_set, .mac_addr_set = i40evf_set_default_mac_addr, .tx_done_cleanup = i40e_tx_done_cleanup, + .get_monitor_addr = i40e_get_monitor_addr }; /*