Commit 2c61c8a7 authored by Robert Stonehouse's avatar Robert Stonehouse Committed by Ben Hutchings

sfc: Fix calculation of vf_i in map_vi_index()

This was broken during refactoring to use efx_vf_size().

[bwh: Keep using efx_vf_size()]
Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
parent ffcb9738
...@@ -514,7 +514,7 @@ static bool map_vi_index(struct efx_nic *efx, unsigned abs_index, ...@@ -514,7 +514,7 @@ static bool map_vi_index(struct efx_nic *efx, unsigned abs_index,
if (abs_index < EFX_VI_BASE) if (abs_index < EFX_VI_BASE)
return true; return true;
vf_i = (abs_index - EFX_VI_BASE) * efx_vf_size(efx); vf_i = (abs_index - EFX_VI_BASE) / efx_vf_size(efx);
if (vf_i >= efx->vf_init_count) if (vf_i >= efx->vf_init_count)
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment