[dpdk-dev] [PATCH v2 24/33] i40e/base: get pf_id from HW rather than PCI function

2015-05-08 Thread Wu, Jingjing
Acked-by: Jingjing Wu > -Original Message- > From: Zhang, Helin > Sent: Thursday, April 30, 2015 11:04 PM > To: dev at dpdk.org > Cc: Cao, Min; Xu, Qian Q; Wu, Jingjing; Liu, Jijiang; Kenguva, Monica; Patel, > Rashmin N; Murray, Steven J; Nelson, Shannon; Zhang, Helin > Subject: [PATCH v

[dpdk-dev] [PATCH v2 24/33] i40e/base: get pf_id from HW rather than PCI function

2015-04-30 Thread Helin Zhang
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 t