gve: Fix swapped vars when fetching max queues
[ Upstream commit1db1a862a0] Fixes:893ce44df5("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
11044f8c2c
commit
342b06b600
1 changed files with 2 additions and 2 deletions
|
|
@ -1286,8 +1286,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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue