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 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 Content-Transfer-Encoding: 8bit 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 --- 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 }; /* -- 2.25.1