diff options
author | Divy Le Ray <divy@chelsio.com> | 2009-01-26 22:21:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-01-26 22:21:59 -0800 |
commit | cb0bc205959bf8c60acae9c71f3da0597e756f8e (patch) | |
tree | b17980de266cf103d14cea0152fa37cffe45dba0 /drivers/net/cxgb3/cxgb3_offload.c | |
parent | 1373c0fdbc5b477f5597a3ca9f2c782f15b56886 (diff) | |
download | op-kernel-dev-cb0bc205959bf8c60acae9c71f3da0597e756f8e.zip op-kernel-dev-cb0bc205959bf8c60acae9c71f3da0597e756f8e.tar.gz |
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.c')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_offload.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_offload.c b/drivers/net/cxgb3/cxgb3_offload.c index 2d7f69a..620d80b 100644 --- a/drivers/net/cxgb3/cxgb3_offload.c +++ b/drivers/net/cxgb3/cxgb3_offload.c @@ -153,6 +153,18 @@ void cxgb3_remove_clients(struct t3cdev *tdev) mutex_unlock(&cxgb3_db_lock); } +void cxgb3_err_notify(struct t3cdev *tdev, u32 status, u32 error) +{ + struct cxgb3_client *client; + + mutex_lock(&cxgb3_db_lock); + list_for_each_entry(client, &client_list, client_list) { + if (client->err_handler) + client->err_handler(tdev, status, error); + } + mutex_unlock(&cxgb3_db_lock); +} + static struct net_device *get_iff_from_mac(struct adapter *adapter, const unsigned char *mac, unsigned int vlan) |