diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-01-20 22:08:26 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-23 00:56:06 +0300 |
commit | 7b78be48a8eb6c34e4e1b1581eceff4074bb4bf1 (patch) | |
tree | 3ebb082f364d287932652fda80230dfa253bc580 /drivers/net/ethernet/broadcom/bcmsysport.h | |
parent | 9ca677b1bd8979f9a7702db5ed4028e4b8b232e8 (diff) | |
download | linux-7b78be48a8eb6c34e4e1b1581eceff4074bb4bf1.tar.xz |
net: systemport: Dynamically allocate number of TX rings
In preparation for adding SYSTEMPORT Lite, which has twice as less transmit
queues than SYSTEMPORT make sure we do allocate TX rings based on the
systemport,txq property to get an appropriate memory footprint.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bcmsysport.h')
-rw-r--r-- | drivers/net/ethernet/broadcom/bcmsysport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/broadcom/bcmsysport.h b/drivers/net/ethernet/broadcom/bcmsysport.h index 1c82e3da69a7..f051356b0274 100644 --- a/drivers/net/ethernet/broadcom/bcmsysport.h +++ b/drivers/net/ethernet/broadcom/bcmsysport.h @@ -659,7 +659,7 @@ struct bcm_sysport_priv { int wol_irq; /* Transmit rings */ - struct bcm_sysport_tx_ring tx_rings[TDMA_NUM_RINGS]; + struct bcm_sysport_tx_ring *tx_rings; /* Receive queue */ void __iomem *rx_bds; |