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)
commit52d9138fb31ac2dadfbf8e51abf04130ee25f4ee
tree7d80da9dcd6d8766f1d5f52b74be2d2a0f84d581
parent3833dc6c1888cfd872b9ce2e3c70a4f07f1a6f9a
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