]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: Use variables with defaults for tx/rx ring sizes instead of hardcoded...
authorZach Brown <zach.brown@ni.com>
Wed, 19 Oct 2016 14:56:57 +0000 (09:56 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2016 19:18:20 +0000 (15:18 -0400)
commita5d1cb2c673aaffb55e4428730bf9bd15e6e70a6
treee32aca90ebc3105d6fd41b537b972bf9462b7ac3
parentbb73809226adf2b863544a848a4c9f0022d6d9db
net: macb: Use variables with defaults for tx/rx ring sizes instead of hardcoded values

The macb driver hardcoded the tx/rx ring sizes. This made it
impossible to change the sizes at run time.

Add tx_ring_size, and rx_ring_size variables to macb object, which
are initilized with default vales during macb_init. Change all
references to RX_RING_SIZE and TX_RING_SIZE to their respective
replacements.

Signed-off-by: Zach Brown <zach.brown@ni.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c
drivers/net/ethernet/cadence/macb.h