]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit782bad522a277893f0eb57a7a8f81ecbefdcfe50
tree3ebb082f364d287932652fda80230dfa253bc580
parent8c6a6c87402c7b93df6034f86b1345738ec4085e
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