This commit brings support PFIL_MEMPTR support to ipfw link level hook.
This hook is expected to be used on NIC bound pfil heads, which provide
memory pointers rather than mbufs. As for now pfil_fake_mbuf() is used
to affiliate that. Skipping pfil_fake_mbuf() and working with memory
pointer directly inside ipfw gives measureable performance boost.
The patch in this review is rather large, so I'd suggest to look
at history of this branch:
The most important commit is the topmost:
This is the most crucial code that I want to be reviewed.
The following commits are preparatory steps:
Commit bfb6a4ff73f1b4dd99ca5165080a63cc6e558a44 is a bugfix and isn't
directly related to this review. Commit isn't directly related as well a014887dd7c60ec96956bcc5cb7fec95a5a6f621.