diff options
author | Edward Cree <ecree@solarflare.com> | 2017-12-18 16:56:19 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-18 13:07:49 -0500 |
commit | 71827443017789da691b402090c6be6138f43157 (patch) | |
tree | c4fe0cc5068136d27ea3e19a80a17c4476a69b91 /drivers/net/ethernet/sfc/efx.c | |
parent | 03714bbb22ebe00bc07d83c526b16377c67daa3f (diff) | |
download | linux-71827443017789da691b402090c6be6138f43157.tar.bz2 |
sfc: support VI strides other than 8k
Medford2 can also have 16k or 64k VI stride. This is reported by MCDI in
GET_CAPABILITIES, which fortunately is called before the driver does
anything sensitive to the VI stride (such as accessing or even allocating
VIs past the zeroth).
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/efx.c')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx.c b/drivers/net/ethernet/sfc/efx.c index bbe4ace7dd9d..e50049cba50b 100644 --- a/drivers/net/ethernet/sfc/efx.c +++ b/drivers/net/ethernet/sfc/efx.c @@ -27,6 +27,7 @@ #include <net/udp_tunnel.h> #include "efx.h" #include "nic.h" +#include "io.h" #include "selftest.h" #include "sriov.h" @@ -2977,6 +2978,7 @@ static int efx_init_struct(struct efx_nic *efx, efx->rx_packet_ts_offset = efx->type->rx_ts_offset - efx->type->rx_prefix_size; spin_lock_init(&efx->stats_lock); + efx->vi_stride = EFX_DEFAULT_VI_STRIDE; mutex_init(&efx->mac_lock); efx->phy_op = &efx_dummy_phy_operations; efx->mdio.dev = net_dev; |