summaryrefslogtreecommitdiffstats
path: root/sys/net/intrq.c
Commit message (Collapse)AuthorAgeFilesLines
* Initialise the intrq_present fields at runtime, not link time. This allowsmsmith2002-01-081-10/+10
| | | | | | us to load protocols at runtime, and avoids the use of common variables. Also fix the ip6_intrq assignment so that it works at all.
* Insert entropy harvesting calls for network traffic. Bymarkm2001-02-181-0/+4
| | | | default, no entropy will be harvested.
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-251-9/+2
| | | | | | | | | | | | | | 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.
* Do some cleanups of the HARP atm codes interface into the system:phk2000-10-121-10/+0
| | | | | | | | Define the NETISR just like all the other NETISRs. unifdef -Usun -D__FreeBSD__ we will probably never support sun4c and if we do we can't use the solaris code anyway and I doubt anybody will be running Fore ATM cards in then in the first place.
* Fix this so LINT compiles. There is no way this could have worked ifpeter2000-01-291-5/+5
| | | | | | tested with LINT. I've put back netatm/kern_include.h and maked it with a fixme!, otherwise NETISR_ATM isn't defined as ATM_KERNEL isn't defined. Defining that exposes a whole bunch of other dependencies.. :-(
* Redo the intrq.c idea asbrian2000-01-271-5/+62
| | | | int family_enqueue(sa_family_t, struct mbuf *);
* Move the *intrq variables into net/intrq.c and unconditionallybrian2000-01-241-0/+60
include this in all kernels. Declare some const *intrq_present variables that can be checked by a module prior to using *intrq to queue data. Make the if_tun module capable of processing atm, ip, ip6, ipx, natm and netatalk packets when TUNSIFHEAD is ioctl()d on. Review not required by: freebsd-hackers
OpenPOWER on IntegriCloud