summaryrefslogtreecommitdiffstats
path: root/sys/netatm/ipatm
Commit message (Collapse)AuthorAgeFilesLines
* Include <sys/malloc.h> for the declaration of malloc(), etc. insteadbde2003-11-141-3/+5
| | | | | | of depending on namespace pollution 2 layers deep in <vm/uma.h>. Fixed most nearby include messes (another like this, several the opposite of this, and some formatting).
* Replace the if_name and if_unit members of struct ifnet with new membersbrooks2003-10-311-4/+3
| | | | | | | | | | | | | if_xname, if_dname, and if_dunit. if_xname is the name of the interface and if_dname/unit are the driver name and instance. This change paves the way for interface renaming and enhanced pseudo device creation and configuration symantics. Approved By: re (in principle) Reviewed By: njl, imp Tested On: i386, amd64, sparc64 Obtained From: NetBSD (if_xname)
* Make the ioctl() interface cleaner with regard to types: use size_tharti2003-07-291-1/+2
| | | | | | instead of int where the variable has to hold buffer lengths, use u_int for things like number of network interfaces which in principle can never be negative.
* Add support for VBR and CBR PVCs for IP over ATM.harti2003-07-253-5/+196
| | | | | Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 2 weeks
* Make the debugging variable that controls dumping of IP over ATM packetsharti2003-07-244-10/+19
| | | | | | | accessible as a sysctl. Submitted by: Vincent Jardin <vjardin@wanadoo.fr> MFC after: 2 weeks
* Convert a lot of uma_zalloc() calls to be NOWAIT instead of WAITOK. Allharti2003-07-231-2/+4
| | | | | these may be called from contexts where we cannot sleep (callout handlers for example).
* Get rid of the zone for network interfaces. We have converted this toharti2003-07-231-7/+0
| | | | use malloc(9).
* Allocate network interfaces from malloc() instead of using a zone.harti2003-07-221-6/+6
| | | | | Usually one needs only a couple of them so using a zone is waste of memory (esp. on multi-cpu systems).
* Remove the zone limits for all the zones used in the ATM code.harti2003-07-221-2/+0
| | | | | | | | | | | These were a left over from when the private memory pools were converted to use uma zones. The limit of UMA zones, however, works differently. When a zone is limited to only one or two pages than, on multi-cpu systems, processes can get stuck on the zonelimit, because all remaining free items are in caches of other CPUs. Also add rudimentary error handling in some places (panic) when a zone cannot be created.
* Use __FBSDID().obrien2003-06-117-69/+21
|
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-041-4/+1
| | | | | | | | | | 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
* Back out M_* changes, per decision of the TRB.imp2003-02-192-4/+4
| | | | Approved by: trb
* Band-XXX-aid an easy to provoke panic.phk2003-01-281-0/+7
| | | | MFC: 2 weeks
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-212-4/+4
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* - Change the ATM stack functions to use intptr_t instead of int for opaquejhb2002-11-083-4/+5
| | | | | | | arguments. - Fix a few other places that assumed that sizeof(int) == sizeof(void *). Reviewed by: mdodd
* Include <sys/systm.h> instead of depending on namespace pollution inbde2002-09-291-2/+1
| | | | <net/if_var.h>. But depend on the standard pollution in <sys/param.h>.
* Pacify gcc by preinitializing a variable.peter2002-05-241-2/+2
|
* - Fix uma_zcreate parameters -- don't pass M_* flags here, doh.arr2002-05-231-2/+2
|
* - Turn two more storage pools into UMA zones and make the related memoryarr2002-05-234-30/+31
| | | | allocations and frees use the UMA api.
* - Nuke some more not needed #ifdef cruft.arr2002-04-215-72/+0
|
* - Change KM_ macro calls to the appropriate function call.arr2002-04-191-1/+1
| | | | | | | - Nuke KM_ macros from port.h This is a leadin step towards cleaning up this code as I wait for some ATM cards and a ATM switch to arrive.
* Remove __P.alfred2002-03-204-42/+41
|
* Add back some now needed #include <sys/systm.h>phk2000-12-075-0/+5
| | | | Fix various warnings while here anyway.
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-251-10/+1
| | | | | | | | | | | | | | 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.
* Remove more unused #includes.phk2000-10-306-6/+0
|
* Remove unneeded #include <machine/clock.h>phk2000-10-157-7/+0
|
* Remove the #include kitchensink <netatm/kern_include.h> and addphk2000-10-127-7/+151
| | | | | | | | | the #includes to the respective source files. Also un-nest includes in <dev/hfa/fore_include.h> I have run src/tools/tools/kerninclude to remove 1239 clearly unneeded #includes reducing the total from 3524 includes to 2285.
* More HARP polishina:phk2000-10-121-4/+4
| | | | | unifdef -UFORE_SBUS -DFORE_PCI s/ATM_KERNEL/_KERNER/g
* Do some cleanups of the HARP atm codes interface into the system:phk2000-10-121-84/+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.
* Just need to pass the address family to if_simloop(), not the whole sockaddr.archie2000-05-241-1/+1
|
* Remove un-needed #include's.mks2000-01-175-6/+0
| | | | Pointed out by: phk
* $Id$ -> $FreeBSD$peter1999-08-2810-17/+17
|
* Allow configuration of up to 256 network interfaces per physical interface -mks1999-05-101-3/+3
| | | | just like the docs say it should.
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-5/+5
| | | | kernel compile
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()archie1998-12-041-3/+4
| | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com>
* Trivial stylish changes, mostly to silence gcc.phk1998-10-317-36/+39
| | | | | Reviewed by: Mike Spengler <mks@networkcs.com> Submitted by: phk
* Two patches from the HARP people:phk1998-09-172-10/+10
| | | | | | | | Various Makefile related fixes. -Wformat fixes. Submitted by: Mike Spengler <mks@networkcs.com>
* Add new files for HARP3phk1998-09-1510-0/+4116
Host ATM Research Platform (HARP), Network Computing Services, Inc. This software was developed with the support of the Defense Advanced Research Projects Agency (DARPA).
OpenPOWER on IntegriCloud