sfc: initialise max_[tx_]channels in efx_init_channels()
authorEdward Cree <ecree@solarflare.com>
Tue, 30 Jun 2020 12:14:13 +0000 (13:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jun 2020 20:09:09 +0000 (13:09 -0700)
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx_channels.c

index 2c3510b..2f9db21 100644 (file)
@@ -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;
 }