summaryrefslogtreecommitdiffstats
path: root/sys/netatm
Commit message (Collapse)AuthorAgeFilesLines
* Pacify gcc by preinitializing a variable.peter2002-05-241-2/+2
|
* Fix a few warnings by adding a missing prototypepeter2002-05-241-0/+1
|
* - Remove a few storage pools and replace them with UMA zones. The spansarr2002-05-247-78/+90
| | | | | code is now storage pool free, so I believe this only leaves the uni base not cleaned.
* - Turn a couple of storage pools into UMA zones and their associated callsarr2002-05-242-10/+13
| | | | to the appropriate UMA api calls.
* - 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.
* Lock down a socket, milestone 1.tanimura2002-05-202-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a socket buffer. The mutex in the receive buffer also protects the data in struct socket. o Determine the lock strategy for each members in struct socket. o Lock down the following members: - so_count - so_options - so_linger - so_state o Remove *_locked() socket APIs. Make the following socket APIs touching the members above now require a locked socket: - sodisconnect() - soisconnected() - soisconnecting() - soisdisconnected() - soisdisconnecting() - sofree() - soref() - sorele() - sorwakeup() - sotryfree() - sowakeup() - sowwakeup() Reviewed by: alfred
* - Remove the init routine for loop -- it broke something and I don't havearr2002-05-071-11/+4
| | | | the time to fix it properly at the moment.
* - Use an array of init functions to be used in a for loop in ourarr2002-05-071-4/+11
| | | | initialization routine.
* - Add atm_init_fnarr2002-05-071-0/+2
|
* - Add atm_sock_init()arr2002-05-073-9/+16
| | | | - Move the Atm_pcb storage pool (atm_pcb_pool) to be an UMA zone.
* - Change the atm_cm_init function to take no argument.arr2002-05-072-2/+2
|
* - Replaced the Atm_connection storage pool with an uma_zone ofarr2002-05-023-29/+31
| | | | | | | | | | 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-303-15/+4
| | | | - Remove atm_uma_ctor() as the M_ZERO will zero out the memory for us.
* Revert the change of #includes in sys/filedesc.h and sys/socketvar.h.tanimura2002-04-301-2/+5
| | | | | | | | | | Requested by: bde Since locking sigio_lock is usually followed by calling pgsigio(), move the declaration of sigio_lock and the definitions of SIGIO_*() to sys/signalvar.h. While I am here, sort include files alphabetically, where possible.
* - Tweak wording of panic message to make more sense.arr2002-04-241-2/+2
|
* - Turn the atm_stackq_pool into a uma_zone (and change it's name toarr2002-04-241-9/+9
| | | | | | atm_stackq_zone). - Change the related atm_allocate() and atm_free() calls into uma_zalloc() and uma_zfree() calls.
* - Remove atm_attributes_pool and the relating atm_allocate() and atm_free()arr2002-04-243-11/+15
| | | | | | | | 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-223-19/+17
| | | | to atm_free() is written.
* - Change the atm_attributes_pool and atm_stackq_pool to be uma_zone'sarr2002-04-223-17/+19
| | | | | (with the appropriate set_max) rather than using the HARP storage pool code.
* - Nuke some more not needed #ifdef cruft.arr2002-04-2114-319/+0
|
* - Create a ``zero fill'' constructor for uma_zcreate's ctor argument.arr2002-04-202-0/+11
| | | | Inspired by: jake@
* - Nuke small sgi ifdef bits.arr2002-04-202-9/+0
|
* - Nuke some more #ifdef sun related sections.arr2002-04-194-41/+1
|
* - Nuke some #ifdef sun4m code; it hasn't been updated in 4 years and is notarr2002-04-192-69/+0
| | | | being used.
* - Change KM_ macro calls to the appropriate function call.arr2002-04-1930-238/+170
| | | | | | | - 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.
* Fix missing commas.mdodd2002-04-171-4/+4
|
* Remove a stray comment terminator that was hiding beyond 80 columns.mdodd2002-04-171-1/+1
|
* - Add defines for ABR and UBR traffic types.mdodd2002-04-172-0/+6
| | | | | - Add IDT bits to vendor/vendorapi/device enums. - Add EISA to atm_bus enum.
* Wrap function in #ifdef DIAGNOSTIC to compile with -Werror.mdodd2002-04-171-2/+4
|
* Add ESA200 to enum atm_device.mdodd2002-04-171-0/+1
|
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-1/+1
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-4/+4
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Remove __P.alfred2002-03-2042-719/+709
|
* Remove __P.alfred2002-03-2012-185/+181
|
* Unbreak fore adapters from POV of warnings.julian2002-02-272-2/+2
| | | | | | Define the atm_dev_free() routine so that its OK to free stuff that is defined as volatile. Note this doesn't FORCE the arguemnts to be volatile, just says that it's not an error if it is..
* Replace a few more lines of code orphaned by MFREE going away.mjacob2002-02-071-4/+8
| | | | MFC after: 1 day
* Allow this to compile againjulian2002-01-301-0/+1
| | | | not tested under LINT by: msmith
* Initialise the intrq_present fields at runtime, not link time. This allowsmsmith2002-01-081-2/+2
| | | | | | 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.
* Give struct socket structures a ref counting interface similar todillon2001-11-171-1/+1
| | | | | | | vnodes. This will hopefully serve as a base from which we can expand the MP code. We currently do not attempt to obtain any mutex or SX locks, but the door is open to add them when we nail down exactly how that part of it is going to work.
* KSE Milestone 2julian2001-09-124-35/+35
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Don't call log() without a format string.kris2001-09-102-2/+2
| | | | MFC after: 2 weeks
* Wrap array accesses in macros, which also happen to be lvalues:jlemon2001-09-061-1/+1
| | | | | | | ifnet_addrs[i - 1] -> ifaddr_byindex(i) ifindex2ifnet[i] -> ifnet_byindex(i) This is intended to ease the conversion to SMPng.
* Commited patch for uni signaling fix.pirzyk2001-07-111-2/+2
| | | | | | PR: kern/28748 Submitted by: Richard Hodges <rh@matriplex.com> MFC after: 2 weeks
* Silence some warningsalfred2001-03-202-10/+10
| | | | Submitted by: LINT
* Preceed/preceeding are not english words. Use precede and preceding.asmodai2001-02-182-2/+2
|
* * Rename M_WAIT mbuf subsystem flag to M_TRYWAIT.bmilekic2000-12-211-1/+1
| | | | | | | | | | | | | | | | | | This is because calls with M_WAIT (now M_TRYWAIT) may not wait forever when nothing is available for allocation, and may end up returning NULL. Hopefully we now communicate more of the right thing to developers and make it very clear that it's necessary to check whether calls with M_(TRY)WAIT also resulted in a failed allocation. M_TRYWAIT basically means "try harder, block if necessary, but don't necessarily wait forever." The time spent blocking is tunable with the kern.ipc.mbuf_wait sysctl. M_WAIT is now deprecated but still defined for the next little while. * Fix a typo in a comment in mbuf.h * Fix some code that was actually passing the mbuf subsystem's M_WAIT to malloc(). Made it pass M_WAITOK instead. If we were ever to redefine the value of the M_WAIT flag, this could have became a big problem.
* Add back some now needed #include <sys/systm.h>phk2000-12-0728-0/+31
| | | | Fix various warnings while here anyway.
* Lock down the network interface queues. The queue mutex must be obtainedjlemon2000-11-253-10/+4
| | | | | | | | | | | | | | 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.
* Add back some #include <sys/systm.h> which were needed when <sys/ktr.h>phk2000-10-304-0/+4
| | | | | | doesn't mess us up. Noted by: Harti Brandt <brandt@fokus.gmd.de>
OpenPOWER on IntegriCloud