diff options
author | Divy Le Ray <divy@chelsio.com> | 2009-01-27 01:21:59 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-27 01:21:59 -0500 |
commit | cb0bc205959bf8c60acae9c71f3da0597e756f8e (patch) | |
tree | b17980de266cf103d14cea0152fa37cffe45dba0 /drivers/net/cxgb3/cxgb3_offload.h | |
parent | 1373c0fdbc5b477f5597a3ca9f2c782f15b56886 (diff) |
cxgb3: Notify fatal errors
Set up a notification mechanism to inform upper layer modules
(iWARP, iSCSI) of a chip reset due to an EEH event or a fatal error.
Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb3/cxgb3_offload.h')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_offload.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.h b/drivers/net/cxgb3/cxgb3_offload.h index d514e5019df..a8e8e5fcdf8 100644 --- a/drivers/net/cxgb3/cxgb3_offload.h +++ b/drivers/net/cxgb3/cxgb3_offload.h | |||
@@ -64,10 +64,16 @@ void cxgb3_register_client(struct cxgb3_client *client); | |||
64 | void cxgb3_unregister_client(struct cxgb3_client *client); | 64 | void cxgb3_unregister_client(struct cxgb3_client *client); |
65 | void cxgb3_add_clients(struct t3cdev *tdev); | 65 | void cxgb3_add_clients(struct t3cdev *tdev); |
66 | void cxgb3_remove_clients(struct t3cdev *tdev); | 66 | void cxgb3_remove_clients(struct t3cdev *tdev); |
67 | void cxgb3_err_notify(struct t3cdev *tdev, u32 status, u32 error); | ||
67 | 68 | ||
68 | typedef int (*cxgb3_cpl_handler_func)(struct t3cdev *dev, | 69 | typedef int (*cxgb3_cpl_handler_func)(struct t3cdev *dev, |
69 | struct sk_buff *skb, void *ctx); | 70 | struct sk_buff *skb, void *ctx); |
70 | 71 | ||
72 | enum { | ||
73 | OFFLOAD_STATUS_UP, | ||
74 | OFFLOAD_STATUS_DOWN | ||
75 | }; | ||
76 | |||
71 | struct cxgb3_client { | 77 | struct cxgb3_client { |
72 | char *name; | 78 | char *name; |
73 | void (*add) (struct t3cdev *); | 79 | void (*add) (struct t3cdev *); |
@@ -76,6 +82,7 @@ struct cxgb3_client { | |||
76 | int (*redirect)(void *ctx, struct dst_entry *old, | 82 | int (*redirect)(void *ctx, struct dst_entry *old, |
77 | struct dst_entry *new, struct l2t_entry *l2t); | 83 | struct dst_entry *new, struct l2t_entry *l2t); |
78 | struct list_head client_list; | 84 | struct list_head client_list; |
85 | void (*err_handler)(struct t3cdev *tdev, u32 status, u32 error); | ||
79 | }; | 86 | }; |
80 | 87 | ||
81 | /* | 88 | /* |