Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 289789
b: refs/heads/master
c: fa142b9
h: refs/heads/master
i:
  289787: 5453eb2
v: v3
  • Loading branch information
Ben Hutchings committed Jan 9, 2012
1 parent 0861387 commit 77b6211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: 05a9320f7e64b69cbf612a69b7358546519ffc30
refs/heads/master: fa142b9da3393fd92b398b6bdecf3f21914e309b
6 changes: 2 additions & 4 deletions trunk/drivers/net/ethernet/sfc/efx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,9 +1146,7 @@ static void efx_fini_io(struct efx_nic *efx)
pci_disable_device(efx->pci_dev);
}

/* Get number of channels wanted. Each channel will have its own IRQ,
* 1 RX queue and/or 2 TX queues. */
static int efx_wanted_channels(void)
static int efx_wanted_parallelism(void)
{
cpumask_var_t core_mask;
int count;
Expand Down Expand Up @@ -1211,7 +1209,7 @@ static int efx_probe_interrupts(struct efx_nic *efx)
struct msix_entry xentries[EFX_MAX_CHANNELS];
int n_channels;

n_channels = efx_wanted_channels();
n_channels = efx_wanted_parallelism();
if (separate_tx_channels)
n_channels *= 2;
n_channels = min(n_channels, max_channels);
Expand Down

0 comments on commit 77b6211

Please sign in to comment.