aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb3/cxgb3_offload.h
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2009-01-27 01:21:59 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-27 01:21:59 -0500
commitcb0bc205959bf8c60acae9c71f3da0597e756f8e (patch)
treeb17980de266cf103d14cea0152fa37cffe45dba0 /drivers/net/cxgb3/cxgb3_offload.h
parent1373c0fdbc5b477f5597a3ca9f2c782f15b56886 (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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.h b/drivers/net/cxgb3/cxgb3_offload.h
index d514e5019dfc..a8e8e5fcdf84 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);
64void cxgb3_unregister_client(struct cxgb3_client *client); 64void cxgb3_unregister_client(struct cxgb3_client *client);
65void cxgb3_add_clients(struct t3cdev *tdev); 65void cxgb3_add_clients(struct t3cdev *tdev);
66void cxgb3_remove_clients(struct t3cdev *tdev); 66void cxgb3_remove_clients(struct t3cdev *tdev);
67void cxgb3_err_notify(struct t3cdev *tdev, u32 status, u32 error);
67 68
68typedef int (*cxgb3_cpl_handler_func)(struct t3cdev *dev, 69typedef int (*cxgb3_cpl_handler_func)(struct t3cdev *dev,
69 struct sk_buff *skb, void *ctx); 70 struct sk_buff *skb, void *ctx);
70 71
72enum {
73 OFFLOAD_STATUS_UP,
74 OFFLOAD_STATUS_DOWN
75};
76
71struct cxgb3_client { 77struct 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/*