summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgb/cxgb_main.c
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-05-05 01:41:53 +0000
committerkmacy <kmacy@FreeBSD.org>2008-05-05 01:41:53 +0000
commit49e613fa454dfc8bdee157e4ef30055fe784332b (patch)
treed9497d11352ba233b90cb5ee47ab79db077b91c2 /sys/dev/cxgb/cxgb_main.c
parent5a3c5f632b4461dbf60ab538e16453104b937231 (diff)
downloadFreeBSD-src-49e613fa454dfc8bdee157e4ef30055fe784332b.zip
FreeBSD-src-49e613fa454dfc8bdee157e4ef30055fe784332b.tar.gz
MFSVN:
- add / remove clients from cxgb_main.c now - change ifdef TOE_ENABLED to TCP_OFFLOAD_DISABLE - update copyrights - fix transmit data mismatch bug caused by not setting SB_NOCOALESCE on tx sockbuf on passive connections - fix receive sequence mismatch bug caused by not setting SB_NOCOALESCE on rx sockbuf on passive connections - don't sleep without checking SBS_CANTRCVMORE first - various ddp ordering fixes Supported by: Chelsio Inc.
Diffstat (limited to 'sys/dev/cxgb/cxgb_main.c')
-rw-r--r--sys/dev/cxgb/cxgb_main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/cxgb/cxgb_main.c b/sys/dev/cxgb/cxgb_main.c
index 838ab51..d77996a 100644
--- a/sys/dev/cxgb/cxgb_main.c
+++ b/sys/dev/cxgb/cxgb_main.c
@@ -1741,6 +1741,10 @@ offload_open(struct port_info *pi)
adapter->port[0].ifp->if_mtu : 0xffff);
init_smt(adapter);
+ /* Call back all registered clients */
+ cxgb_add_clients(tdev);
+
+
/* restore them in case the offload module has changed them */
if (err) {
t3_tp_set_offload_mode(adapter, 0);
@@ -1757,7 +1761,10 @@ offload_close(struct t3cdev *tdev)
if (!isset(&adapter->open_device_map, OFFLOAD_DEVMAP_BIT))
return (0);
-
+
+ /* Call back all registered clients */
+ cxgb_remove_clients(tdev);
+
tdev->lldev = NULL;
cxgb_set_dummy_ops(tdev);
t3_tp_set_offload_mode(adapter, 0);
OpenPOWER on IntegriCloud