Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 143462
b: refs/heads/master
c: af22ab1
h: refs/heads/master
v: v3
  • Loading branch information
Wu Fengguang authored and David S. Miller committed Apr 15, 2009
1 parent ce55988 commit 078ae51
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95615d90a321349709c80091f2a9cb284757ff0d
refs/heads/master: af22ab1bd20e9dedf3a37cc1d401ef8bbd587ef0
19 changes: 10 additions & 9 deletions trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2723,17 +2723,21 @@ static inline bool ixgbe_set_rss_queues(struct ixgbe_adapter *adapter)
**/
static void ixgbe_set_num_queues(struct ixgbe_adapter *adapter)
{
/* Start with base case */
adapter->num_rx_queues = 1;
adapter->num_tx_queues = 1;

#ifdef CONFIG_IXGBE_DCB
if (ixgbe_set_dcb_queues(adapter))
return;
goto done;

#endif
if (ixgbe_set_rss_queues(adapter))
return;
goto done;

/* fallback to base case */
adapter->num_rx_queues = 1;
adapter->num_tx_queues = 1;

done:
/* Notify the stack of the (possibly) reduced Tx Queue count. */
adapter->netdev->real_num_tx_queues = adapter->num_tx_queues;
}

static void ixgbe_acquire_msix_vectors(struct ixgbe_adapter *adapter,
Expand Down Expand Up @@ -2992,9 +2996,6 @@ static int ixgbe_set_interrupt_capability(struct ixgbe_adapter *adapter)
}

out:
/* Notify the stack of the (possibly) reduced Tx Queue count. */
adapter->netdev->real_num_tx_queues = adapter->num_tx_queues;

return err;
}

Expand Down

0 comments on commit 078ae51

Please sign in to comment.