commit | bee7bacd18612564b85dc0b3e54063316c5bb32d | [log] [tgz] |
---|---|---|
author | Max Filippov <jcmvbkbc@gmail.com> | Fri Jan 31 09:41:07 2014 +0400 |
committer | David S. Miller <davem@davemloft.net> | Sat Feb 01 16:56:49 2014 -0800 |
tree | b5ef2ec4c4d1ce8684000222739f1eb8354db927 | |
parent | 1112909f76650e1d4c6de44b80c2d044c7c11e59 [diff] |
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>