ibmvnic: Add ethtool private flag for driver-defined queue limits
authorThomas Falcon <tlfalcon@linux.ibm.com>
Fri, 28 Sep 2018 23:38:26 +0000 (18:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 06:31:16 +0000 (23:31 -0700)
commit723ad916134784b317b72f3f6cf0f7ba774e5dae
tree836f9efdb9616524c0610d768bc8bb9d6c98b5d7
parent20b5ba1f610079908b70d44fd7fb91bf0e9700ff
ibmvnic: Add ethtool private flag for driver-defined queue limits

When choosing channel amounts and ring sizes, the maximums in the
ibmvnic driver are defined by the virtual i/o server management
partition. Even though they are defined as maximums, the client
driver may in fact successfully request resources that exceed
these limits, which are mostly dependent on a user's hardware

With this in mind, provide an ethtool flag that when enabled will
allow the user to request resources limited by driver-defined
maximums instead of limits defined by the management partition.
The driver will try to honor the user's request but may not allowed
by the management partition. In this case, the driver requests
as close as it can get to the desired amount until it succeeds.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c
drivers/net/ethernet/ibm/ibmvnic.h