diff options
author | Edward Cree <ecree@solarflare.com> | 2020-06-30 15:14:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-30 23:09:09 +0300 |
commit | 937aa3ae4d14e2184b5ce5a801003723712e96bd (patch) | |
tree | 90ea69837f0316730f23ff01d833113a96395ea9 /drivers/net/ethernet | |
parent | 20e1026cbed4af3fcf15779ec3edecf990ee8d4e (diff) | |
download | linux-937aa3ae4d14e2184b5ce5a801003723712e96bd.tar.xz |
sfc: initialise max_[tx_]channels in efx_init_channels()
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/sfc/efx_channels.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx_channels.c b/drivers/net/ethernet/sfc/efx_channels.c index 2c3510b0524a..2f9db219513a 100644 --- a/drivers/net/ethernet/sfc/efx_channels.c +++ b/drivers/net/ethernet/sfc/efx_channels.c @@ -566,6 +566,9 @@ int efx_init_channels(struct efx_nic *efx) efx->interrupt_mode = min(efx->type->min_interrupt_mode, interrupt_mode); + efx->max_channels = EFX_MAX_CHANNELS; + efx->max_tx_channels = EFX_MAX_CHANNELS; + return 0; } |