fm10k: add VF support
authorJeff Shaw <jeffrey.b.shaw@intel.com>
Wed, 4 Feb 2015 08:26:16 +0000 (16:26 +0800)
committerChen Jing D(Mark) <jing.d.chen@intel.com>
Tue, 17 Feb 2015 14:25:30 +0000 (15:25 +0100)
commitc0eb314107010ac8559a3760f9ada477598c1f90
treefdc3057f8aa459f6488b714e1c1d2adb176c5652
parentfbf3e0f911f2f8ca4f1d6b3b8de533ba14edf8a9
fm10k: add VF support

fm10k pmd driver will support both PF and VF device with single
copy of code. The reason is NIC maps registers with same
function in PF and VF to same PCI I/O address. Then, PF/VF drivers
use same address to access registers belonging to it, HW will
translate the request to correct units.

For some functionalities that are unique to PF, driver will check
current driver type and behave correctly.

Signed-off-by: Jeff Shaw <jeffrey.b.shaw@intel.com>
Signed-off-by: Chen Jing D(Mark) <jing.d.chen@intel.com>
lib/librte_pmd_fm10k/fm10k_ethdev.c