summaryrefslogtreecommitdiffstats
path: root/sys/i4b/driver/i4b_ing.c
Commit message (Collapse)AuthorAgeFilesLines
* Part 2 of the netgraph rewrite.julian2001-01-081-16/+15
| | | | | | This is mostly cosmetic changes, (though I caught a bug or two while makeing them) Reviewed by: archie@freebsd.org
* Rewrite of netgraph to start getting ready for SMP.julian2001-01-061-30/+50
| | | | | | | | This version is functional and is aproaching solid.. notice I said APROACHING. There are many node types I cannot test I have tested: echo hole ppp socket vjc iface tee bpf async tty The rest compile and "Look" right. More changes to follow. DEBUGGING is enabled in this code to help if people have problems.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-181-1/+1
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* Change initialiser to match new structure layout.julian2000-12-121-1/+0
| | | | | forgotten by: Me Found by: GCC
* Reviewed by: Archie@freebsd.orgjulian2000-12-121-2/+5
| | | | | | | | | | | | | 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 :-)
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-251-22/+14
| | | | | | | | | | | | | | before adding/removing packets from the queue. Also, the if_obytes and if_omcasts fields should only be manipulated under protection of the mutex. IF_ENQUEUE, IF_PREPEND, and IF_DEQUEUE perform all necessary locking on the queue. An IF_LOCK macro is provided, as well as the old (mutex-less) versions of the macros in the form _IF_ENQUEUE, _IF_QFULL, for code which needs them, but their use is discouraged. Two new macros are introduced: IF_DRAIN() to drain a queue, and IF_HANDOFF, which takes care of locking/enqueue, and also statistics updating/start if necessary.
* Fix i4b netgraph interface to not kernel panic at boot timehm2000-11-091-2/+13
| | | | | Make code compile and work for FreeBSD 4.x as well as FreeBSD 5.x Submitted by: Michael Reifenberger <root@nihil.plaut.de>
* Submitted by: phkhm2000-10-131-4/+0
| | | | Remove not needed includes.
* fix conflicting types for ng_ing_rcvmsg() and ng_ing_rcvdata().hm2000-10-101-3/+4
|
* update to i4b version 0.95.04hm2000-10-091-0/+860
OpenPOWER on IntegriCloud