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:
https://github.com/glebius/FreeBSD/commits/pfil
The most important commit is the topmost:
0512e8e3de490b3ab2497c46373acf723dd3f6b9
This is the most crucial code that I want to be reviewed.
The following commits are preparatory steps:
1ce76e69e0219c31b3deccd4b2f9751987917763
f3941316b74a275292d8125c77dd114449481d77
45ab1e7e3aaaae323864ab56e4bbae4d43e0e4d5
72029a8fbfce40159a7006ed10eddb4400230ef8
b24f3ee15e55643aa2c6871b450f468ec4766a7f
17692f9c2cf07275fd680bc67d87cd5b099b9236
Commit bfb6a4ff73f1b4dd99ca5165080a63cc6e558a44 is a bugfix and isn't
directly related to this review. Commit isn't directly related as well a014887dd7c60ec96956bcc5cb7fec95a5a6f621.