Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213872
b: refs/heads/master
c: 251b036
h: refs/heads/master
v: v3
  • Loading branch information
Sony Chacko authored and David S. Miller committed Aug 19, 2010
1 parent 258e528 commit 44beb9c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 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: 39895e07ca8ce13d8b38d00bf66236b93907c027
refs/heads/master: 251b036a22f530aff26cf70f5cdb0cf64a072e46
1 change: 1 addition & 0 deletions trunk/drivers/net/qlcnic/qlcnic.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@

#define DEFAULT_RCV_DESCRIPTORS_1G 2048
#define DEFAULT_RCV_DESCRIPTORS_10G 4096
#define MAX_RDS_RINGS 2

#define get_next_index(index, length) \
(((index) + 1) & ((length) - 1))
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/qlcnic/qlcnic_hdr.h
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,10 @@ enum {
#define FW_POLL_DELAY (1 * HZ)
#define FW_FAIL_THRESH 2

#define QLCNIC_RESET_TIMEOUT_SECS 10
#define QLCNIC_INIT_TIMEOUT_SECS 30


#define ISR_MSI_INT_TRIGGER(FUNC) (QLCNIC_PCIX_PS_REG(PCIX_MSI_F(FUNC)))
#define ISR_LEGACY_INT_TRIGGERED(VAL) (((VAL) & 0x300) == 0x200)

Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/net/qlcnic/qlcnic_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,12 +553,12 @@ qlcnic_setup_idc_param(struct qlcnic_adapter *adapter) {
}
adapter->physical_port = (val >> 2);
if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DEV_INIT_TIMEOUT, &timeo))
timeo = 30;
timeo = QLCNIC_INIT_TIMEOUT_SECS;

adapter->dev_init_timeo = timeo;

if (qlcnic_rom_fast_read(adapter, QLCNIC_ROM_DRV_RESET_TIMEOUT, &timeo))
timeo = 10;
timeo = QLCNIC_RESET_TIMEOUT_SECS;

adapter->reset_ack_timeo = timeo;

Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ qlcnic_check_options(struct qlcnic_adapter *adapter)

adapter->num_txd = MAX_CMD_DESCRIPTORS;

adapter->max_rds_rings = 2;
adapter->max_rds_rings = MAX_RDS_RINGS;
}

static int
Expand Down

0 comments on commit 44beb9c

Please sign in to comment.