diff options
author | Robert Stonehouse <rstonehouse@solarflare.com> | 2012-03-02 18:20:00 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-03-06 19:14:13 +0100 |
commit | 2c61c8a787fc3382edefd8c7ad3e0f74c81e5302 (patch) | |
tree | a680c9607241bdc1a05bcd7af4cb80cf8fce4348 /drivers/net/ethernet/sfc/siena_sriov.c | |
parent | Merge branch 'master' of git://gitorious.org/linux-can/linux-can-next (diff) | |
download | linux-2c61c8a787fc3382edefd8c7ad3e0f74c81e5302.tar.xz linux-2c61c8a787fc3382edefd8c7ad3e0f74c81e5302.zip |
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: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/siena_sriov.c')
-rw-r--r-- | drivers/net/ethernet/sfc/siena_sriov.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/siena_sriov.c b/drivers/net/ethernet/sfc/siena_sriov.c index 80976e84eee6..9cb3b84ecae9 100644 --- a/drivers/net/ethernet/sfc/siena_sriov.c +++ b/drivers/net/ethernet/sfc/siena_sriov.c @@ -514,7 +514,7 @@ static bool map_vi_index(struct efx_nic *efx, unsigned abs_index, if (abs_index < EFX_VI_BASE) 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) return true; |