summaryrefslogtreecommitdiffstats
path: root/sys/netatm/atm_cm.c
Commit message (Collapse)AuthorAgeFilesLines
* Silence a gcc-warning. Do this by inlining the macro-call. This isharti2003-07-261-2/+1
| | | | | not very nice - the compiler should just silently optimize away the unused else clause.
* Hand the packet to bpf not only in the LLC/SNAP case, but for allharti2003-07-251-11/+12
| | | | | | | connections. While this confuses tcpdump, it enables other applications to see and analyze non-IP traffic (signalling, for example). Pointed out by: Vincent Jardin <vjardin@wanadoo.fr>
* Add BPF support to HARP network interfaces. This allows one to seeharti2003-07-241-0/+12
| | | | | | | | the traffic on LLC multiplexed connections (like CLIP). PR: kern/51831 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-5/+10
| | | | | these may be called from contexts where we cannot sleep (callout handlers for example).
* Remove the zone limits for all the zones used in the ATM code.harti2003-07-221-2/+4
| | | | | | | | | | | 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-111-10/+3
|
* Back out M_* changes, per decision of the TRB.imp2003-02-191-7/+7
| | | | Approved by: trb
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-211-7/+7
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* - Change the ATM stack functions to use intptr_t instead of int for opaquejhb2002-11-081-17/+17
| | | | | | | arguments. - Fix a few other places that assumed that sizeof(int) == sizeof(void *). Reviewed by: mdodd
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-1/+1
|
* - Turn a DIAGNOSTIC check into a KASSERT(9) macro.arr2002-06-171-6/+2
|
* - Explicitly pass M_WAITOK in a few calls to uma_zalloc(9).arr2002-06-171-7/+7
|
* - Change the atm_cm_init function to take no argument.arr2002-05-071-1/+1
|
* - Replaced the Atm_connection storage pool with an uma_zone ofarr2002-05-021-29/+27
| | | | | | | | | | Atm_connection items. - Replaced the Atm_connvc storage pool with an uma_zone of Atm_connvc items. - Created void atm_cm_init(void *) and added it to the netatm init code. I'm thinking that there will definetly be more ``subsystem'' init functions to be added so I'll probably change these calls to be a for loop through init routines (or something).
* - Take advantage of the M_ZERO flag that can now be passed to uma_zalloc.arr2002-04-301-1/+1
| | | | - Remove atm_uma_ctor() as the M_ZERO will zero out the memory for us.
* - Remove atm_attributes_pool and the relating atm_allocate() and atm_free()arr2002-04-241-3/+3
| | | | | | | | calls associated with the pool and the objects allocated out from the pool. - Insert atm_attributes_zone which is a uma_zone that is used just as the atm_attributes_pool was (including the max objects value). Also, used the appropriate zalloc and zfree's where necesary.
* - Revert previous change of atm storage pools -> uma_zones until a solutionarr2002-04-221-1/+1
| | | | to atm_free() is written.
* - Change the atm_attributes_pool and atm_stackq_pool to be uma_zone'sarr2002-04-221-1/+1
| | | | | (with the appropriate set_max) rather than using the HARP storage pool code.
* - Change KM_ macro calls to the appropriate function call.arr2002-04-191-8/+8
| | | | | | | - 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-201-13/+13
|
* Add back some #include <sys/systm.h> which were needed when <sys/ktr.h>phk2000-10-301-0/+1
| | | | | | doesn't mess us up. Noted by: Harti Brandt <brandt@fokus.gmd.de>
* Remove more unused #includes.phk2000-10-271-2/+0
|
* Remove unneeded #include <machine/clock.h>phk2000-10-151-1/+0
|
* Remove the #include kitchensink <netatm/kern_include.h> and addphk2000-10-121-1/+22
| | | | | | | | | 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.
* $Id$ -> $FreeBSD$peter1999-08-281-2/+2
|
* Fix if (a = b) conditional that should have been if (a == b)dillon1999-01-271-3/+3
|
* Fix warnings in preparation for adding -Wall -Wcast-qual to thedillon1999-01-271-5/+5
| | | | kernel compile
* Trivial stylish changes, mostly to silence gcc.phk1998-10-311-4/+4
| | | | | Reviewed by: Mike Spengler <mks@networkcs.com> Submitted by: phk
* Two patches from the HARP people:phk1998-09-171-8/+8
| | | | | | | | Various Makefile related fixes. -Wformat fixes. Submitted by: Mike Spengler <mks@networkcs.com>
* Add new files for HARP3phk1998-09-151-0/+3464
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