diff options
author | julian <julian@FreeBSD.org> | 2000-12-12 18:52:14 +0000 |
---|---|---|
committer | julian <julian@FreeBSD.org> | 2000-12-12 18:52:14 +0000 |
commit | 2d1192e61200eb8fc54319899e014acefd14ae74 (patch) | |
tree | 7cea4425abc67a898f27d4352a634cfa82aad7cc /sys/dev/usb/udbp.c | |
parent | 66009fc30e546f777cfc59b5d148551c44f649e2 (diff) | |
download | FreeBSD-src-2d1192e61200eb8fc54319899e014acefd14ae74.zip FreeBSD-src-2d1192e61200eb8fc54319899e014acefd14ae74.tar.gz |
Reviewed by: Archie@freebsd.org
This clears out my outstanding netgraph changes.
There is a netgraph change of design in the offing and this is to some
extent a superset of soem of the new functionality and some of the old
functionality that may be removed.
This code works as before, but allows some new features that I want to
work with and evaluate. It is the basis for a version of netgraph
with integral locking for SMP use.
This is running on my test machine with no new problems :-)
Diffstat (limited to 'sys/dev/usb/udbp.c')
-rw-r--r-- | sys/dev/usb/udbp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/usb/udbp.c b/sys/dev/usb/udbp.c index d75e1f2..2cfbf0b 100644 --- a/sys/dev/usb/udbp.c +++ b/sys/dev/usb/udbp.c @@ -195,7 +195,6 @@ Static struct ng_type ng_udbp_typestruct = { NULL, ng_udbp_connect, ng_udbp_rcvdata, - ng_udbp_rcvdata, ng_udbp_disconnect, ng_udbp_cmdlist }; @@ -485,7 +484,6 @@ udbp_in_transfer_cb(usbd_xfer_handle xfer, usbd_private_handle priv, udbp_p sc = priv; /* XXX see priv above */ int s; int len; - meta_p meta = NULL; struct mbuf *m; if (err) { @@ -506,7 +504,7 @@ udbp_in_transfer_cb(usbd_xfer_handle xfer, usbd_private_handle priv, if (sc->hook) { /* get packet from device and send on */ m = m_devget(sc->sc_bulkin_buffer, len, 0, NULL, NULL); - NG_SEND_DATAQ(err, sc->hook, m, meta); + NG_SEND_DATA_ONLY(err, sc->hook, m); } splx(s); @@ -723,7 +721,7 @@ ng_udbp_rcvmsg(node_p node, */ Static int ng_udbp_rcvdata(hook_p hook, struct mbuf *m, meta_p meta, - struct mbuf **ret_m, meta_p *ret_meta) + struct mbuf **ret_m, meta_p *ret_meta, struct ng_mesg **resp) { const udbp_p sc = hook->node->private; int error; @@ -793,6 +791,8 @@ ng_udbp_rmnode(node_p node) Static int ng_udbp_connect(hook_p hook) { + /* probably not at splnet, force outward queueing */ + hook->peer->flags |= HK_QUEUE; /* be really amiable and just say "YUP that's OK by me! " */ return (0); } |