There are use cases like RT that would benefit from being able to tune the macb rx/tx ring sizes. The ethtool set_ringparam function is the standard way of doing so.
The first patch changes the hardcoded tx/rx ring sizes to variables that are set to a hardcoded default. The second patch implements the get_ringparam and set_ringparam fucntions. Zach Brown (2): net: macb: Use variables with defaults for tx/rx ring sizes instead of hardcoded values net: macb: Add ethtool get_ringparam and set_ringparam functionality drivers/net/ethernet/cadence/macb.c | 173 +++++++++++++++++++++++++----------- drivers/net/ethernet/cadence/macb.h | 3 + 2 files changed, 124 insertions(+), 52 deletions(-) -- 2.7.4