diff options
author | Jonathan Lemon <jlemon@FreeBSD.org> | 2003-03-04 23:19:55 +0000 |
---|---|---|
committer | Jonathan Lemon <jlemon@FreeBSD.org> | 2003-03-04 23:19:55 +0000 |
commit | 1cafed3941f1a4e9d2beb4fb126e91018505dfd4 (patch) | |
tree | f304f726e8973253d3e8a87e56119fec0276a61c /sys/dev/iicbus | |
parent | c141c242ac0a55a34b58cf2b06d13964d00507a4 (diff) | |
download | src-1cafed3941f1a4e9d2beb4fb126e91018505dfd4.tar.gz src-1cafed3941f1a4e9d2beb4fb126e91018505dfd4.zip |
Update netisr handling; Each SWI now registers its queue, and all queue
drain routines are done by swi_net, which allows for better queue control
at some future point. Packets may also be directly dispatched to a netisr
instead of queued, this may be of interest at some installations, but
currently defaults to off.
Reviewed by: hsu, silby, jayanth, sam
Sponsored by: DARPA, NAI Labs
Notes
Notes:
svn path=/head/; revision=111888
Diffstat (limited to 'sys/dev/iicbus')
-rw-r--r-- | sys/dev/iicbus/if_ic.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/iicbus/if_ic.c b/sys/dev/iicbus/if_ic.c index a6660b744d31..fa4f8aaaee1f 100644 --- a/sys/dev/iicbus/if_ic.c +++ b/sys/dev/iicbus/if_ic.c @@ -314,10 +314,8 @@ icintr (device_t dev, int event, char *ptr) top = m_devget(sc->ic_ifbuf + ICHDRLEN, len, 0, &sc->ic_if, 0); - if (top) { - if (IF_HANDOFF(&ipintrq, top, NULL)) - schednetisr(NETISR_IP); - } + if (top) + netisr_dispatch(NETISR_IP, top); break; err: |