diff options
author | Amit Kumar Salecha <amit@qlogic.com> | 2009-09-11 07:28:14 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-11 19:58:48 -0400 |
commit | 74c520da5414d15b0ab2839d67efab2e7227be75 (patch) | |
tree | d079968ab0f36d4cf7521763ef64d165976537e7 /drivers/net/netxen/netxen_nic.h | |
parent | ec5c50cb93c446a4686863df74e4b7a547628115 (diff) |
netxen: fix tx timeout recovery
Redesign tx timeout handling in line with new firmware
reset design that co-ordinates with other PCI function
drivers.
o For NX3031, first try to reset PCI function's own
context before requesting firmware reset.
o For NX2031, since firmware heartbit is not supported
directly request firmware reset.
Signed-off-by: Amit Kumar Salecha <amit@netxen.com>
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index 7e3d2b932790..1ae46e8c2dc7 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -178,6 +178,7 @@ | |||
178 | 178 | ||
179 | #define MAX_BUFFERS_PER_CMD 32 | 179 | #define MAX_BUFFERS_PER_CMD 32 |
180 | #define TX_STOP_THRESH ((MAX_SKB_FRAGS >> 2) + 4) | 180 | #define TX_STOP_THRESH ((MAX_SKB_FRAGS >> 2) + 4) |
181 | #define NX_MAX_TX_TIMEOUTS 2 | ||
181 | 182 | ||
182 | /* | 183 | /* |
183 | * Following are the states of the Phantom. Phantom will set them and | 184 | * Following are the states of the Phantom. Phantom will set them and |
@@ -1145,7 +1146,8 @@ struct netxen_adapter { | |||
1145 | u8 link_changed; | 1146 | u8 link_changed; |
1146 | u8 fw_wait_cnt; | 1147 | u8 fw_wait_cnt; |
1147 | u8 fw_fail_cnt; | 1148 | u8 fw_fail_cnt; |
1148 | u16 resv4; | 1149 | u8 tx_timeo_cnt; |
1150 | u8 need_fw_reset; | ||
1149 | 1151 | ||
1150 | u8 has_link_events; | 1152 | u8 has_link_events; |
1151 | u8 fw_type; | 1153 | u8 fw_type; |