summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgb
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-09-01 05:30:22 +0000
committerkmacy <kmacy@FreeBSD.org>2008-09-01 05:30:22 +0000
commit4f7f14505ade23cf1713dac8e039845e724b1326 (patch)
treeeefb65d571361cd61f7d7314918fa03fac1bdbea /sys/dev/cxgb
parent3b54160eff6a09b2ad56d8119df4b6f086da7ca0 (diff)
downloadFreeBSD-src-4f7f14505ade23cf1713dac8e039845e724b1326.zip
FreeBSD-src-4f7f14505ade23cf1713dac8e039845e724b1326.tar.gz
Don't check if an interface can do tcp offload if there are no offload devices registered on the system.
Suggested by: rwatson MFC after: 3 days
Diffstat (limited to 'sys/dev/cxgb')
-rw-r--r--sys/dev/cxgb/ulp/toecore/toedev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/cxgb/ulp/toecore/toedev.c b/sys/dev/cxgb/ulp/toecore/toedev.c
index 07a0d6e..8a6b39f 100644
--- a/sys/dev/cxgb/ulp/toecore/toedev.c
+++ b/sys/dev/cxgb/ulp/toecore/toedev.c
@@ -119,6 +119,7 @@ int
register_tom(struct tom_info *t)
{
mtx_lock(&offload_db_lock);
+ toedev_registration_count++;
TAILQ_INSERT_HEAD(&offload_module_list, t, entry);
mtx_unlock(&offload_db_lock);
return 0;
OpenPOWER on IntegriCloud