Page MenuHomeFreeBSD

mbuf: make m_pullup() an inline over most expected case
AcceptedPublic

Authored by glebius on Mon, Oct 12, 11:26 PM.

Details

Reviewers
pouria
gallatin
zlei
Group Reviewers
network
transport
Summary

Implement a most typical use of m_pullup() as an inline and leave only the
heavy part as a function. A sweeping change to make benefit of the new
version follows.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 78110
Build 74993: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Mon, Oct 12, 11:43 PM
zlei added a subscriber: zlei.

I like this idea !

sys/sys/mbuf.h
865

3rd party drivers should be re-compiled, otherwise they may fail to load, as they may still reference to the old symbol m_pullup. Any plan to MFC this to stable branches ?

880

This inline function is too small. Does it deserves a __always_inline ?