Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255683
b: refs/heads/master
c: 5f6ec29
h: refs/heads/master
i:
  255681: debae53
  255679: b2aaf3b
v: v3
  • Loading branch information
Sucheta Chakraborty authored and David S. Miller committed Jun 24, 2011
1 parent d6d23c9 commit 4bbac5b
Show file tree
Hide file tree
Showing 3 changed files with 3 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: c40f4ef77e5123a1d4064d7a34f708483b32b8be
refs/heads/master: 5f6ec29abe434676f940357bcd66536bbc69e9f8
1 change: 0 additions & 1 deletion trunk/drivers/net/qlcnic/qlcnic.h
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,6 @@ struct qlcnic_ipaddr {
((adapter)->flags & (QLCNIC_MSI_ENABLED | QLCNIC_MSIX_ENABLED))

#define QLCNIC_DEF_NUM_STS_DESC_RINGS 4
#define QLCNIC_MIN_NUM_RSS_RINGS 2
#define QLCNIC_MSIX_TBL_SPACE 8192
#define QLCNIC_PCI_REG_MSIX_TBL 0x44
#define QLCNIC_MSIX_TBL_PGSIZE 4096
Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,10 +418,8 @@ qlcnic_setup_intr(struct qlcnic_adapter *adapter)
int num_msix;

if (adapter->msix_supported) {
num_msix = (num_online_cpus() >=
QLCNIC_DEF_NUM_STS_DESC_RINGS) ?
QLCNIC_DEF_NUM_STS_DESC_RINGS :
QLCNIC_MIN_NUM_RSS_RINGS;
num_msix = rounddown_pow_of_two(min_t(int, num_online_cpus(),
QLCNIC_DEF_NUM_STS_DESC_RINGS));
} else
num_msix = 1;

Expand Down

0 comments on commit 4bbac5b

Please sign in to comment.