net/qede/base: fix first VF index calculation
authorRasesh Mody <rasesh.mody@cavium.com>
Sat, 18 Mar 2017 06:53:31 +0000 (23:53 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 16:59:44 +0000 (18:59 +0200)
commit1c46a0fc02546e7cfa98ba1abf8950e727550704
tree947253eefcea041e0476932a286c665f211027cb
parent32376ac6b5280dfd40dc853297f2bbb8839e0dbb
net/qede/base: fix first VF index calculation

When a server doesn't support ARI, VF offsets begin at a much higher
number. As a result, ecore miscalculates the first_vf_in_pf and
initialization fails since base driver incorrectly learns there are
no SBs for its VF [as its VFs are out of range].

Fixes: 22d07d939c3c ("net/qede/base: update")

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_sriov.c