summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
AgeCommit message (Expand)Author
2022-02-22Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h>Philip Guenther
2022-02-14update sbchecklowmem() to better detect actual mbuf memory usage.David Gwynne
2022-02-08use sizeof(long) - 1 in m_pullup to determine payload alignment.David Gwynne
2022-01-18Properly handle read-only clusters in m_pullup(9).Alexander Bluhm
2021-03-06ansiJonathan Gray
2021-02-25let m_copydata use a void * instead of caddr_tDavid Gwynne
2021-01-13Convert mbuf type KDASSERT() to a proper KASSERT() in m_get(9).Alexander Bluhm
2020-12-12Rename the macro MCLGETI to MCLGETL and removes the dead parameter ifp.jan
2020-06-21add mq_push. it's like mq_enqueue, but drops from the head, not the tail.David Gwynne
2020-01-22add ml_hdatalen and mq_hdatalen as workalikes of ifq_hdatalen.David Gwynne
2019-10-22Replace the mutex that protects the mbuf allocation limit by anAlexander Bluhm
2019-07-19After the kernel has reached the sysclt kern.maxclusters limit,Alexander Bluhm
2019-07-16Fix uipc white spaces.Alexander Bluhm
2019-07-16Prevent integer overflow in kernel and userland when checking mbufAlexander Bluhm
2019-06-10add m_microtime for getting the wall clock time associated with a packetDavid Gwynne
2019-02-10revert revert revert. there are many other archs that use custom allocs.Ted Unangst
2019-02-10make it possible to reduce kmem pressure by letting some pools use a moreTed Unangst
2019-02-01make m_pullup use the first mbuf with data to measure alignment.David Gwynne
2019-01-09Eliminate an else branch from m_extunref().Visa Hankala
2019-01-08If the mbuf cluster in m_zero() is read only, propagate the M_ZEROIZEAlexander Bluhm
2019-01-07It is possible to call m_zero with a read-only cluster. In that case justClaudio Jeker
2018-11-30Trivial MH_ALIGN/M_ALIGN to m_align conversions.Claudio Jeker
2018-11-12Introduce m_align() a function that works like M_ALIGN() but works withClaudio Jeker
2018-11-09M_LEADINGSPACE() and M_TRAILINGSPACE() are just wrappers forClaudio Jeker
2018-09-13Add reference counting for inet pcb, this will be needed when weAlexander Bluhm
2018-09-10Instead of calculating the mbuf packet header length here and there,Alexander Bluhm
2018-09-10During fragment reassembly, mbuf chains with packet headers wereAlexander Bluhm
2018-03-18NULL deref on armv7 performing NFS, within 10 seconds.Theo de Raadt
2018-03-13make m_pullup skip over empty mbufs when finding the payload alignment.David Gwynne
2018-03-12make m_adj keep m_data aligned when removing all the data in an mbuf.David Gwynne
2018-01-16garbage collect an unused variableSebastian Benoit
2017-12-29Make sure that pf_mbuf_link_state_key() does not overwrite anAlexander Bluhm
2017-12-29Make the functions which link the pf state keys to mbufs, inpcbs,Alexander Bluhm
2017-10-12Move sysctl_mq() where it can safely mess with mbuf queue internals.Martin Pieuchot
2017-09-15Coverity complained that the while loop at the end of m_adj() couldAlexander Bluhm
2017-05-27Put an assert that M_PKTHDR is set before accessing m_pkthdr in theAlexander Bluhm
2017-05-27Refactor m_makespace() using MCLGETI to simplify the logic of this function.Claudio Jeker
2017-05-08add a compile time assertion MSIZE == sizeof(struct mbuf)Ted Unangst
2017-02-07enable per cpu caches on the mbuf pools.David Gwynne
2017-02-07move the mbuf pools to m_pool_init and a single global memory limitDavid Gwynne
2017-02-07add m_pool_init(), a wrapper around pool_init for mbuf clusters.David Gwynne
2017-02-07provide a custom pool page allocator for mbufs, but dont use it yet.David Gwynne
2017-02-05Always allocate counters memory using type M_COUNTERS.Jeremie Courreges-Anglas
2017-01-25Clear the reference of the original mbuf chain after m_split()'ingMartin Pieuchot
2016-11-29m_free() and m_freem() test for NULL. Simplify callers which had their ownJonathan Gray
2016-11-09Do not dereference a variable without initializing it beforehand.Martin Pieuchot
2016-10-27refactor m_pullup a bit.David Gwynne
2016-10-27add a new pool for 2k + 2 byte (mcl2k2) clusters.David Gwynne
2016-10-24avoid using realloc in the name of things that dont work like realloc.David Gwynne
2016-10-24move the mbstat structure to percpu countersDavid Gwynne