net/i40e: support converting VF MAC to VF id
authorRory Sexton <rory.sexton@intel.com>
Wed, 11 Oct 2017 16:18:47 +0000 (17:18 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 11 Oct 2017 23:40:39 +0000 (00:40 +0100)
commita399ed9ae4df3a6e76d1bd9b7960520d125e66ef
treedbc4af5d3f00634f0bee31cffca37c31196ce98a
parent63bdef1827f5a98ab375877cb994ef92c33a0b8a
net/i40e: support converting VF MAC to VF id

Need a way to convert a VF id to a PF id on the host so as to query the
PF for relevant statistics which are used for the frequency changes in
the vm_power_manager app.

Used when profiles are passed down from the guest to the host, allowing
the host to map the VFs to PFs.

Signed-off-by: Nemanja Marjanovic <nemanja.marjanovic@intel.com>
Signed-off-by: Rory Sexton <rory.sexton@intel.com>
Signed-off-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
drivers/net/i40e/rte_pmd_i40e.c
drivers/net/i40e/rte_pmd_i40e.h
drivers/net/i40e/rte_pmd_i40e_version.map