ibmvnic: Rename IBMVNIC_MAX_TX_QUEUES to IBMVNIC_MAX_QUEUES
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Mon, 18 Dec 2017 18:52:11 +0000 (12:52 -0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Dec 2017 19:08:20 +0000 (14:08 -0500)
This value denotes the maximum number of TX queues but is used
to allocate both RX and TX queues.

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

index 1dc4aef37d3a4faf3592ab0dede92b802a831824..df6d91116b65867721836a31540c4f2ae9e1cc3e 100644 (file)
@@ -4285,7 +4285,7 @@ static int ibmvnic_probe(struct vio_dev *dev, const struct vio_device_id *id)
        }
 
        netdev = alloc_etherdev_mq(sizeof(struct ibmvnic_adapter),
-                                  IBMVNIC_MAX_TX_QUEUES);
+                                  IBMVNIC_MAX_QUEUES);
        if (!netdev)
                return -ENOMEM;
 
index 4487f1e2c2668daf41030c6f0d39c8a327ab904c..0f8ef616153ab1fc4676245cdea938f900084786 100644 (file)
@@ -39,7 +39,7 @@
 #define IBMVNIC_RX_WEIGHT              16
 /* when changing this, update IBMVNIC_IO_ENTITLEMENT_DEFAULT */
 #define IBMVNIC_BUFFS_PER_POOL 100
-#define IBMVNIC_MAX_TX_QUEUES  5
+#define IBMVNIC_MAX_QUEUES     5
 
 #define IBMVNIC_TSO_BUF_SZ     65536
 #define IBMVNIC_TSO_BUFS       64