net: systemport: Dynamically allocate number of TX rings
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 20 Jan 2017 19:08:26 +0000 (11:08 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Jan 2017 21:56:06 +0000 (16:56 -0500)
commit7b78be48a8eb6c34e4e1b1581eceff4074bb4bf1
tree3ebb082f364d287932652fda80230dfa253bc580
parent9ca677b1bd8979f9a7702db5ed4028e4b8b232e8
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>
drivers/net/ethernet/broadcom/bcmsysport.c
drivers/net/ethernet/broadcom/bcmsysport.h