diff options
author | Linas Vepstas <linas@austin.ibm.com> | 2007-05-14 19:37:30 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-07-08 22:16:38 -0400 |
commit | d796fdb708fc5b10112934cba43e832c36ce4923 (patch) | |
tree | 433063c793bd095721bcbb811cf8460ff3ec228f /drivers/net/s2io.h | |
parent | bd5824f138153f407e300728919e814ab7dcfadb (diff) |
s2io: add PCI error recovery support
This patch adds PCI error recovery support to the
s2io 10-Gigabit ethernet device driver. Third revision,
blocks interrupts and the watchdog.
Tested, seems to work well.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Acked-by: Ramkrishna Vepa <Ramkrishna.Vepa@neterion.com>
Cc: Raghavendra Koushik <raghavendra.koushik@neterion.com>
Cc: Wen Xiong <wenxiong@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/s2io.h')
-rw-r--r-- | drivers/net/s2io.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/s2io.h b/drivers/net/s2io.h index 54baa0b8ec7c..b9b660702abd 100644 --- a/drivers/net/s2io.h +++ b/drivers/net/s2io.h | |||
@@ -1052,6 +1052,11 @@ static void lro_append_pkt(struct s2io_nic *sp, struct lro *lro, | |||
1052 | struct sk_buff *skb, u32 tcp_len); | 1052 | struct sk_buff *skb, u32 tcp_len); |
1053 | static int rts_ds_steer(struct s2io_nic *nic, u8 ds_codepoint, u8 ring); | 1053 | static int rts_ds_steer(struct s2io_nic *nic, u8 ds_codepoint, u8 ring); |
1054 | 1054 | ||
1055 | static pci_ers_result_t s2io_io_error_detected(struct pci_dev *pdev, | ||
1056 | pci_channel_state_t state); | ||
1057 | static pci_ers_result_t s2io_io_slot_reset(struct pci_dev *pdev); | ||
1058 | static void s2io_io_resume(struct pci_dev *pdev); | ||
1059 | |||
1055 | #define s2io_tcp_mss(skb) skb_shinfo(skb)->gso_size | 1060 | #define s2io_tcp_mss(skb) skb_shinfo(skb)->gso_size |
1056 | #define s2io_udp_mss(skb) skb_shinfo(skb)->gso_size | 1061 | #define s2io_udp_mss(skb) skb_shinfo(skb)->gso_size |
1057 | #define s2io_offload_type(skb) skb_shinfo(skb)->gso_type | 1062 | #define s2io_offload_type(skb) skb_shinfo(skb)->gso_type |