| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
than use a macro that tries to do conversions in place.
Compile tested on: sparc64
|
|
|
|
| |
Approved by: trb
|
|
|
|
| |
MFC: 2 weeks
|
|
|
|
| |
Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
|
|
|
| |
especially in troff files.
|
|
|
|
| |
Add FreeBSD Id tag where missing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
were sometimes propagated using M_COPY_PKTHDR which actually did
something between a "move" and a "copy" operation. This is replaced
by M_MOVE_PKTHDR (which copies the pkthdr contents and "removes" it
from the source mbuf) and m_dup_pkthdr which copies the packet
header contents including any m_tag chain. This corrects numerous
problems whereby mbuf tags could be lost during packet manipulations.
These changes also introduce arguments to m_tag_copy and m_tag_copy_chain
to specify if the tag copy work should potentially block. This
introduces an incompatibility with openbsd which we may want to revisit.
Note that move/dup of packet headers does not handle target mbufs
that have a cluster bound to them. We may want to support this;
for now we watch for it with an assert.
Finally, M_COPYFLAGS was updated to include M_FIRSTFRAG|M_LASTFRAG.
Supported by: Vernier Networks
Reviewed by: Robert Watson <rwatson@FreeBSD.org>
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
arguments.
- Fix a few other places that assumed that sizeof(int) == sizeof(void *).
Reviewed by: mdodd
|
| |
|
|
|
|
|
| |
<net/if_var.h>. But depend on the standard pollution in <sys/param.h>.
Removed unused includes.
|
|
|
|
| |
<net/if_var.h>. But depend on the standard pollution in <sys/param.h>.
|
|
|
|
| |
include files to provide functions for kernel source (spans_kxdr.c)
|
| |
|
|
|
|
|
|
|
| |
breaking application ABI use unused ifreq.ifru_flags[1] for upper 16 bits in
SIOCSIFFLAGS and SIOCGIFFLAGS ioctl's.
Reviewed by: -hackers, -net
|
| |
|
|
|
|
|
| |
- Convert DMA_GET_ADDR() calls to vtophys() calls in order to finish
removing the DMA_* macros.
|
|
|
|
| |
- Change SCHED_ATM statements into schednetisr() calls.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
within the HARP atm stack and the hea and hfa device drivers, but since
all of these systems were changed to use UMA zones, there is no use for
the api any longer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the necesary uma_zcreate() and uma_zdestroy calls into module loading
handler and the device attach handling.
- Change the related HARP netatm code to use UMA zone functions when
dealing with the zones that were formerly the ATM interface (hea, hfa)
storage pools.
- Have atm_physif_freenifs() now get passed an uma_zone_t so that we can
properly free the allocated NIF's back to their zone.
This should be the last commit to remove any code that makes use of the
netatm storage pool api. I will be removing the api code within the near
future.
Reviewed by: mdodd
|
|
|
|
|
|
|
|
|
|
| |
be a few bits left to clean from the HARP code in terms of what is using
the storage pools; once that's done, the memory management code can be
removed entirely.
This commit effectively changes the use of dynamic memory routines from
atm_allocate, atm_free, atm_release_pool to uma_zcreate, uma_zalloc,
uma_zfree, uma_zdestroy.
|
|
|
|
| |
Silence a warning.
|
|
|
|
| |
Requested by: hsu
|
| |
|
| |
|
|
|
|
|
| |
code is now storage pool free, so I believe this only leaves the uni
base not cleaned.
|
|
|
|
| |
to the appropriate UMA api calls.
|
| |
|
|
|
|
| |
allocations and frees use the UMA api.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
the time to fix it properly at the moment.
|
|
|
|
| |
initialization routine.
|
| |
|
|
|
|
| |
- Move the Atm_pcb storage pool (atm_pcb_pool) to be an UMA zone.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
- Remove atm_uma_ctor() as the M_ZERO will zero out the memory for us.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
atm_stackq_zone).
- Change the related atm_allocate() and atm_free() calls into uma_zalloc()
and uma_zfree() calls.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
to atm_free() is written.
|
|
|
|
|
| |
(with the appropriate set_max) rather than using the HARP storage pool
code.
|
| |
|