]> Pileus Git - ~andy/linux/commit
net: ethoc: implement ethtool get/set ring parameters
authorMax Filippov <jcmvbkbc@gmail.com>
Fri, 31 Jan 2014 05:41:07 +0000 (09:41 +0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Feb 2014 00:56:49 +0000 (16:56 -0800)
commitbee7bacd18612564b85dc0b3e54063316c5bb32d
treeb5ef2ec4c4d1ce8684000222739f1eb8354db927
parent1112909f76650e1d4c6de44b80c2d044c7c11e59
net: ethoc: implement ethtool get/set ring parameters

TX and RX rings share memory and descriptors. Maximal number of
descriptors reported is one less than the total available nuber of
descriptors. For the set operation the requested number of TX descriptors
is rounded down to the nearest power of two (driver logic requirement).

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ethoc.c