diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2011-07-04 03:18:02 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2011-07-04 03:18:02 +0000 |
commit | 15624218e3e2e6e62e90dc0957c88cdc60c00045 (patch) | |
tree | c850aa1aa32a1b5389cb7e308ef3cc7194921ffc /sys/net | |
parent | e4a4d093ebd04cbb3712f55cb7ac02d4c158213f (diff) |
there's no way we can use just a single workq task here. one task for all packets?
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_aoe.c | 5 | ||||
-rw-r--r-- | sys/net/if_aoe.h | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/if_aoe.c b/sys/net/if_aoe.c index 03c1ca3c3d4..1c6f2431000 100644 --- a/sys/net/if_aoe.c +++ b/sys/net/if_aoe.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_aoe.c,v 1.2 2010/08/21 06:50:42 blambert Exp $ */ +/* $OpenBSD: if_aoe.c,v 1.3 2011/07/04 03:18:01 tedu Exp $ */ /* * Copyright (c) 2008 Ted Unangst <tedu@openbsd.org> * @@ -54,5 +54,6 @@ aoe_input(struct ifnet *ifp, struct mbuf *m) return; } - workq_queue_task(NULL, &q->task, 0, q->fn, q, m); + if (workq_add_task(NULL, 0, q->fn, q, m) != 0) + m_freem(m); } diff --git a/sys/net/if_aoe.h b/sys/net/if_aoe.h index d73ee016eea..be577ae74a9 100644 --- a/sys/net/if_aoe.h +++ b/sys/net/if_aoe.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_aoe.h,v 1.2 2010/08/21 06:50:42 blambert Exp $ */ +/* $OpenBSD: if_aoe.h,v 1.3 2011/07/04 03:18:01 tedu Exp $ */ /* * Copyright (c) 2007 Ted Unangst <tedu@openbsd.org> * @@ -104,7 +104,6 @@ struct aoe_handler { unsigned char minor; struct ifnet *ifp; workq_fn fn; - struct workq_task task; TAILQ_HEAD(, aoe_req) reqs; }; |