From: Edward Cree Date: Tue, 30 Jun 2020 12:14:13 +0000 (+0100) Subject: sfc: initialise max_[tx_]channels in efx_init_channels() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=937aa3ae4d14e2184b5ce5a801003723712e96bd;p=linux.git sfc: initialise max_[tx_]channels in efx_init_channels() Signed-off-by: Edward Cree Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/sfc/efx_channels.c b/drivers/net/ethernet/sfc/efx_channels.c index 2c3510b0524a7..2f9db219513a2 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; }