History log of /dragonfly/sys/kern/uipc_mbuf.c (Results 51 – 75 of 147)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 7c85e8ac 30-Dec-2010 Sascha Wildner <saw@online.de>

kernel: Add m_extadd().


# db11cb20 07-Aug-2011 Sascha Wildner <saw@online.de>

Move static & inline to the beginnings of declarations.


# 3508d9a1 27-Jul-2011 Matthew Dillon <dillon@apollo.backplane.com>

kernel - Adjust mbuf cached free object retention

* Adjust the cache retention in the objcache_create() calls the mbuf
subsystem makes to reduce burst ENOBUF failures. Previously the
main mbufp

kernel - Adjust mbuf cached free object retention

* Adjust the cache retention in the objcache_create() calls the mbuf
subsystem makes to reduce burst ENOBUF failures. Previously the
main mbufphdr cache only retained ~150 or so free mbufs. Now it
retains up to 1/4 the limit.

Reported-by: Peter Avalos <peter@theshell.com>

show more ...


Revision tags: v2.6.3, v2.7.3, v2.6.2, v2.7.2, v2.7.1, v2.6.1, v2.7.0, v2.6.0, v2.5.1, v2.4.1
# 920c9f10 28-Sep-2009 Alex Hornung <ahornung@gmail.com>

mbuf - Add m_apply and m_getptr

* Import m_apply and m_getptr from FreeBSD.

Obtained-from: FreeBSD


Revision tags: v2.5.0, v2.4.0
# a5955b15 09-Sep-2009 Matthew Dillon <dillon@apollo.backplane.com>

MBUF - Account for failed allocations so netstat -m reports properly.


# e54488bb 19-Aug-2009 Matthew Dillon <dillon@apollo.backplane.com>

AMD64 - Refactor uio_resid and size_t assumptions.

* uio_resid changed from int to size_t (size_t == unsigned long equivalent).

* size_t assumptions in most kernel code has been refactored to opera

AMD64 - Refactor uio_resid and size_t assumptions.

* uio_resid changed from int to size_t (size_t == unsigned long equivalent).

* size_t assumptions in most kernel code has been refactored to operate in a
64 bit environment.

* In addition, the 2G limitation for VM related system calls such as mmap()
has been removed in 32 bit environments. Note however that because
read() and write() return ssize_t, these functions are still limited
to a 2G byte count in 32 bit environments.

show more ...


Revision tags: v2.3.2, v2.3.1, v2.2.1
# 60233e58 05-Apr-2009 Sascha Wildner <saw@online.de>

Generally use NULL instead of explicitly casting 0 to some pointer type.


# 6f21e2f4 05-Apr-2009 Sepherosa Ziehau <sephe@dragonflybsd.org>

mbuf: Don't discount the objcache limits required by non-pkthdr mbuf


Revision tags: v2.2.0
# 1e5fb84b 05-Feb-2009 Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>

kill db_print_backtrace()

Use print_backtrace() which is always available. Remove
a bunch of #ifdef DDB and #include <ddb/ddb.h> lines.


Revision tags: v2.3.0, v2.1.1
# 3f98f485 20-Nov-2008 Sepherosa Ziehau <sephe@dragonflybsd.org>

Since kmalloc's limit testing is not synchronized across CPUs, we raise
the limit by another 1/8 to take the loosememuse into account.


# 0aa16b5d 26-Oct-2008 Sepherosa Ziehau <sephe@dragonflybsd.org>

- Return the real cluster limit used by the objcache
- For mbuf objcaches, raise backing kmalloc pools' limit according to the
cluster limits.
Suggested-by: dillon@

Reviewed-by: aggelos@, nth@


# dee87a60 24-Oct-2008 Sepherosa Ziehau <sephe@dragonflybsd.org>

Use atomic_fetchadd_int() to simplify the reference counting logic.

Reviewed-by: dillon@


# cf12ba3c 19-Oct-2008 Sepherosa Ziehau <sephe@dragonflybsd.org>

Add m_devpad() to avoid code duplication in various network device drivers


Revision tags: v2.0.1
# 3641b7ca 05-Jun-2008 Sascha Wildner <swildner@dragonflybsd.org>

* Fix some cases where NULL was used but 0 was meant (and vice versa).

* Remove some bogus casts of NULL to (void *).


# 1d16b2b5 12-Aug-2007 Matthew Dillon <dillon@dragonflybsd.org>

Make m_mclfree() MP safe by fixing a N->0 dereferencing race. The spinlock
wasn't safe because the structure is dynamically allocated and freed.
Instead just use atomic_cmpset_int() to detect the 1-

Make m_mclfree() MP safe by fixing a N->0 dereferencing race. The spinlock
wasn't safe because the structure is dynamically allocated and freed.
Instead just use atomic_cmpset_int() to detect the 1->0 transition.

show more ...


# 4c1e2509 11-Aug-2007 Joe Talbott <josepht@dragonflybsd.org>

Make mbuf allocator statistics SMP safe.

Make mbtypes[] and mbstat per-cpu. Use atomic_*_*_nonlocked() to adjust
their values. Convert sysctls (kern.ipc.mbstat and kern.ipc.mbtypes) into
procedure

Make mbuf allocator statistics SMP safe.

Make mbtypes[] and mbstat per-cpu. Use atomic_*_*_nonlocked() to adjust
their values. Convert sysctls (kern.ipc.mbstat and kern.ipc.mbtypes) into
procedures that sum the statistics for each CPU.

Reviewed-By: Matt Dillon <dillon@backplane.com>

show more ...


# e9fa4b60 09-Aug-2007 Matthew Dillon <dillon@dragonflybsd.org>

Add the MBUF_DEBUG option. This is a fairly invasive option that should
not be used on production boxes. All active mbufs are tracked with a separate
tracking structure and arranged in a RB tree.

Add the MBUF_DEBUG option. This is a fairly invasive option that should
not be used on production boxes. All active mbufs are tracked with a separate
tracking structure and arranged in a RB tree. A kernel built with this
option can dump all active mbufs with 'sysctl kern.ipc.showmbufs'.

A person debugging the kernel can sprinkle mbuftrackid() calls in the code
to associate an integer id with an mbuf to make the sysctl output more
useful.

The size of the mbuf structure is NOT changed through the use of this option,
but mbuf management overhead will be increased.

show more ...


# 18c48b9c 13-May-2007 Matthew Dillon <dillon@dragonflybsd.org>

Make the kern.ipc.nmbclusters and kern.ipc.nmbufs sysctls read-only.
These may only be set as boot-time variables in /boot/loader.conf.

Adjusting them after the fact w/sysctl will not update the obj

Make the kern.ipc.nmbclusters and kern.ipc.nmbufs sysctls read-only.
These may only be set as boot-time variables in /boot/loader.conf.

Adjusting them after the fact w/sysctl will not update the objcache limits
and will cause a ton of confusion because then netstat -m will report
the adjusted limits but the system won't actually be using the adjusted
limits.

objcache mbuf limits can be adjusted dynamically, we just need some code to
do it -> for the future!

Reported-by: Peter Avalos <pavalos@theshell.com>

show more ...


# ba39e2e0 30-Apr-2007 Matthew Dillon <dillon@dragonflybsd.org>

Revamp SYSINIT ordering. Relabel sysinit IDs (SI_* in sys/kernel.h) to
make them less confusing, particularly with regard to the relative order
init routines are called in.

Reorder many sysinits.

Revamp SYSINIT ordering. Relabel sysinit IDs (SI_* in sys/kernel.h) to
make them less confusing, particularly with regard to the relative order
init routines are called in.

Reorder many sysinits. Reorder the SMP and CLOCK code to bring all the
cpus up far earlier in the boot sequence and to make the full threading and
clocking subsystems available for device config.

show more ...


# 0b30dad7 04-Mar-2007 Sascha Wildner <swildner@dragonflybsd.org>

Remove weird license clause which has expired.


# 6ea70f76 23-Dec-2006 Sascha Wildner <swildner@dragonflybsd.org>

Rename printf -> kprintf in sys/ and add some defines where necessary
(files which are used in userland, too).


# 5b7da64a 17-Dec-2006 Matthew Dillon <dillon@dragonflybsd.org>

Pass NULL to objcache_create() to indicate that null_ctor() and/or null_dtor()
should be used. Make null_ctor() and null_dtor() private functions.

Disallow M_ZERO entirely, it doesn't really fit th

Pass NULL to objcache_create() to indicate that null_ctor() and/or null_dtor()
should be used. Make null_ctor() and null_dtor() private functions.

Disallow M_ZERO entirely, it doesn't really fit the objcache model.

With-input-from: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>,
"Thomas E. Spanjaard" <tgen@netphreax.net>,
Jeffrey Hsu <hsu@crater.dragonflybsd.org>

show more ...


# efda3bd0 05-Sep-2006 Matthew Dillon <dillon@dragonflybsd.org>

Rename malloc->kmalloc, free->kfree, and realloc->krealloc. Pass 1


# 0ced1954 03-Sep-2006 Matthew Dillon <dillon@dragonflybsd.org>

Rename functions to avoid conflicts with libc.


# dc14b0a9 21-Jan-2006 Matthew Dillon <dillon@dragonflybsd.org>

Switch the type and how argument declarations around to match what the
rest of the kernel expects. Note that only the NCP protocol uses m_getm().

Submitted-by: Alexey Slynko <slynko@tronet.ru>


123456