Helin Zhang 12b116260b i40e/base: fix hardware port number for pass-thru
Getting the pf_id from the function number was a good place to
start, but when the PF was setup in pass-thru mode, the PCI
bus/device/function was virtualized and the number in the VM is
different from the number in the bare metal. This caused HW
configuration issues when the wrong pf_id was used to set up the
HMC and other structures. The PF_FUNC_RID register has the real
bus/device/function information as configured by the BIOS, so use
that for a better number.

Test report: http://www.dpdk.org/ml/archives/dev/2015-May/017384.html

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Jijiang Liu <jijiang.liu@intel.com>
Tested-by: Min Cao <min.cao@intel.com>
2015-05-17 23:18:23 +02:00
2015-05-11 15:51:14 +02:00
2015-04-13 21:48:27 +02:00
2015-05-14 23:33:38 +02:00
2015-05-14 23:33:38 +02:00
2015-04-03 16:13:45 +02:00
2015-03-23 14:29:31 +01:00
2013-03-07 10:57:42 +01:00
2013-07-25 14:43:06 +02:00
2014-06-11 00:29:34 +02:00
Description
No description provided
Languages
C 99.1%
Meson 0.5%
Python 0.2%
Shell 0.1%