]> git.droids-corp.org - dpdk.git/commitdiff
net/i40e: support power management on VF
authorAnatoly Burakov <anatoly.burakov@intel.com>
Mon, 26 Apr 2021 13:49:12 +0000 (13:49 +0000)
committerQi Zhang <qi.z.zhang@intel.com>
Wed, 28 Apr 2021 01:09:21 +0000 (03:09 +0200)
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")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: David Hunt <david.hunt@intel.com>
drivers/net/i40e/i40e_ethdev_vf.c

index 3c258ba7cfca36321190a3188f993d3e5ee48b0e..156ad9ab96de2b6a88449c656f1d2b33f539d4c7 100644 (file)
@@ -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
 };
 
 /*