Skip to content

Commit 1db1a86

Browse files
baileyforrestdavem330
authored andcommitted
gve: Fix swapped vars when fetching max queues
Fixes: 893ce44 ("gve: Add basic driver framework for Compute Engine Virtual NIC") Signed-off-by: Bailey Forrest <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ff70202 commit 1db1a86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/google/gve/gve_main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,8 +1295,8 @@ static int gve_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
12951295

12961296
gve_write_version(&reg_bar->driver_version);
12971297
/* Get max queues to alloc etherdev */
1298-
max_rx_queues = ioread32be(&reg_bar->max_tx_queues);
1299-
max_tx_queues = ioread32be(&reg_bar->max_rx_queues);
1298+
max_tx_queues = ioread32be(&reg_bar->max_tx_queues);
1299+
max_rx_queues = ioread32be(&reg_bar->max_rx_queues);
13001300
/* Alloc and setup the netdev and priv */
13011301
dev = alloc_etherdev_mqs(sizeof(*priv), max_tx_queues, max_rx_queues);
13021302
if (!dev) {

0 commit comments

Comments
 (0)