summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/efx_common.c
diff options
context:
space:
mode:
authorEdward Cree <ecree@solarflare.com>2020-06-30 15:14:45 +0300
committerDavid S. Miller <davem@davemloft.net>2020-06-30 23:09:09 +0300
commitd4adc5162b9731df8ad95808c088e8ca4a5b1aaa (patch)
treea6d38342ab8104f6f354fc74d0c30eceb13d2f71 /drivers/net/ethernet/sfc/efx_common.c
parent937aa3ae4d14e2184b5ce5a801003723712e96bd (diff)
downloadlinux-d4adc5162b9731df8ad95808c088e8ca4a5b1aaa.tar.xz
sfc: commonise efx->[rt]xq_entries initialisation
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_common.c')
-rw-r--r--drivers/net/ethernet/sfc/efx_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx_common.c b/drivers/net/ethernet/sfc/efx_common.c
index 251e37bc7048..822e9e147404 100644
--- a/drivers/net/ethernet/sfc/efx_common.c
+++ b/drivers/net/ethernet/sfc/efx_common.c
@@ -1035,6 +1035,9 @@ int efx_init_struct(struct efx_nic *efx,
INIT_WORK(&efx->mac_work, efx_mac_work);
init_waitqueue_head(&efx->flush_wq);
+ efx->rxq_entries = EFX_DEFAULT_DMAQ_SIZE;
+ efx->txq_entries = EFX_DEFAULT_DMAQ_SIZE;
+
efx->mem_bar = UINT_MAX;
rc = efx_init_channels(efx);