ibmvnic: Introduce driver limits for ring sizes
authorThomas Falcon <tlfalcon@linux.ibm.com>
Fri, 28 Sep 2018 23:38:25 +0000 (18:38 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 06:31:16 +0000 (23:31 -0700)
Introduce driver-defined maximums for queue ring sizes. Devices
available for IBM vNIC today will likely not allow this amount,
but this should give us some leeway for future devices that may
support larger ring sizes.

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

index 2c1787109f1c45df8f2b9918e6a8e8d325cf03ac..f9a12e5843c4fbc04c196a8163bb59661013cd1e 100644 (file)
@@ -40,6 +40,7 @@
 /* when changing this, update IBMVNIC_IO_ENTITLEMENT_DEFAULT */
 #define IBMVNIC_BUFFS_PER_POOL 100
 #define IBMVNIC_MAX_QUEUES     16
 /* when changing this, update IBMVNIC_IO_ENTITLEMENT_DEFAULT */
 #define IBMVNIC_BUFFS_PER_POOL 100
 #define IBMVNIC_MAX_QUEUES     16
+#define IBMVNIC_MAX_QUEUE_SZ   4096
 
 #define IBMVNIC_TSO_BUF_SZ     65536
 #define IBMVNIC_TSO_BUFS       64
 
 #define IBMVNIC_TSO_BUF_SZ     65536
 #define IBMVNIC_TSO_BUFS       64