cxgb4: Fix for SR-IOV VF initialization
authorHariprasad Shenai <hariprasad@chelsio.com>
Wed, 6 Aug 2014 11:40:59 +0000 (17:10 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Aug 2014 20:47:16 +0000 (13:47 -0700)
commit8e1e605902d07c0ce1c3331a8d0a12a6c9e5d7fb
tree1daed2897c52636011b350769c5a89686bec0e84
parent140c55d4b59581680dc8963612bdc79d19f7bef6
cxgb4: Fix for SR-IOV VF initialization

Commit 35b1de5 ("rdma/cxgb4: Fixes cxgb4 probe failure in VM when PF is exposed
through PCI Passthrough") introduced a regression, where VF failed to
initialize for Physical function 0 to Physical Function 3. In the above
commit, we removed the code which used to enable sriov for PF0 to PF3. Now
adding it back to get sriov working.

V2:
 Removed SRIOV loop for PF[0..3] to instantiate the VF's as per David Miller's
 comment

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c