]> git.baikalelectronics.ru Git - kernel.git/commit
ftgmac100: Make ring sizes configurable via ethtool
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 12 Apr 2017 03:27:09 +0000 (13:27 +1000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Apr 2017 14:17:02 +0000 (10:17 -0400)
commitd9d172e40bcbae50e0c362058ba66b45cc937dab
tree7d80da9dcd6d8766f1d5f52b74be2d2a0f84d581
parent95110f9b6f96e323c38fb97d56dedfdc7e2d1687
ftgmac100: Make ring sizes configurable via ethtool

We set an arbitrary max at 1024 since we pre-allocate the actual
descriptor arrays and skb arrays to the full size to keep the
code a bit simpler and avoid allocation failures in the reset
task.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/faraday/ftgmac100.c