]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit539bd1f049dfcc639aaf6cc892c486a68640095d
tree836f9efdb9616524c0610d768bc8bb9d6c98b5d7
parent511d2d43f254ad4f055a1db020cd25d37f33fb84
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