diff options
author | Bailey Forrest <bcf@google.com> | 2021-06-25 05:55:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-25 21:22:04 +0300 |
commit | 1db1a862a08f85edc36aad091236ac9b818e949e (patch) | |
tree | bba34b19c9807f6138602d05b22fc8e3d2b81a47 /drivers/net/ethernet/google | |
parent | ff70202b2d1ad522275c6aadc8c53519b6a22c57 (diff) | |
download | linux-1db1a862a08f85edc36aad091236ac9b818e949e.tar.xz |
gve: Fix swapped vars when fetching max queues
Fixes: 893ce44df565 ("gve: Add basic driver framework for Compute Engine Virtual NIC")
Signed-off-by: Bailey Forrest <bcf@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/google')
-rw-r--r-- | drivers/net/ethernet/google/gve/gve_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/google/gve/gve_main.c b/drivers/net/ethernet/google/gve/gve_main.c index bbc423e93122..79cefe85a799 100644 --- a/drivers/net/ethernet/google/gve/gve_main.c +++ b/drivers/net/ethernet/google/gve/gve_main.c @@ -1295,8 +1295,8 @@ static int gve_probe(struct pci_dev *pdev, const struct pci_device_id *ent) gve_write_version(®_bar->driver_version); /* Get max queues to alloc etherdev */ - max_rx_queues = ioread32be(®_bar->max_tx_queues); - max_tx_queues = ioread32be(®_bar->max_rx_queues); + max_tx_queues = ioread32be(®_bar->max_tx_queues); + max_rx_queues = ioread32be(®_bar->max_rx_queues); /* Alloc and setup the netdev and priv */ dev = alloc_etherdev_mqs(sizeof(*priv), max_tx_queues, max_rx_queues); if (!dev) { |