Mbuf reference count

Rui Paulo rpaulo at FreeBSD.org
Mon Jan 13 03:22:50 UTC 2014


On 2 Jan 2014, at 06:26, Venkata Duvvuru <VenkatKumar.Duvvuru at Emulex.Com> wrote:

> Hi,
> Is there a way to increase the reference count of mbuf? I see there is a ref count for external storage (m_ext) but couldn't find one for !M_EXT case.

The idea was to reference count the mbufs with external storage so that m_copym() would avoid copying.  Why do you need to reference count an mbuf?  mbufs are usually short lived and I haven't encountered any situation yet where reference counting an mbuf would help.

--
Rui Paulo





More information about the freebsd-net mailing list