Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139807
b: refs/heads/master
c: 8be0e46
h: refs/heads/master
i:
  139805: 2195438
  139803: da4bcf4
  139799: 15ebf8e
  139791: 3468281
  139775: 358f409
v: v3
  • Loading branch information
PJ Waskiewicz authored and David S. Miller committed Apr 2, 2009
1 parent aa50907 commit 273ccbb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: cd7664f69fe1f3f75b664503ae3e11a2971a4865
refs/heads/master: 8be0e4671d6355b2d905cb8fd051393b2cbf9510
11 changes: 6 additions & 5 deletions trunk/drivers/net/ixgbe/ixgbe_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2934,6 +2934,7 @@ static int ixgbe_alloc_queues(struct ixgbe_adapter *adapter)
**/
static int ixgbe_set_interrupt_capability(struct ixgbe_adapter *adapter)
{
struct ixgbe_hw *hw = &adapter->hw;
int err = 0;
int vector, v_budget;

Expand All @@ -2948,12 +2949,12 @@ static int ixgbe_set_interrupt_capability(struct ixgbe_adapter *adapter)

/*
* At the same time, hardware can only support a maximum of
* MAX_MSIX_COUNT vectors. With features such as RSS and VMDq,
* we can easily reach upwards of 64 Rx descriptor queues and
* 32 Tx queues. Thus, we cap it off in those rare cases where
* the cpu count also exceeds our vector limit.
* hw.mac->max_msix_vectors vectors. With features
* such as RSS and VMDq, we can easily surpass the number of Rx and Tx
* descriptor queues supported by our device. Thus, we cap it off in
* those rare cases where the cpu count also exceeds our vector limit.
*/
v_budget = min(v_budget, MAX_MSIX_COUNT);
v_budget = min(v_budget, (int)hw->mac.max_msix_vectors);

/* A failure in MSI-X entry allocation isn't fatal, but it does
* mean we disable MSI-X capabilities of the adapter. */
Expand Down

0 comments on commit 273ccbb

Please sign in to comment.