cvs commit: src/sys/modules/ipdivert Makefile src/sys/netinetin_proto.c ip_divert.c ip_divert.h ip_fw2.c ip_fw_pfil.c

Ruslan Ermilov ru at FreeBSD.org
Thu Oct 21 00:12:22 PDT 2004


On Tue, Oct 19, 2004 at 11:58:10PM +0200, Andre Oppermann wrote:
> Scott Long wrote:
[...]
> > This is interesting.  Have you measured performance/latency with this
> > new scheme?  Is it still possible to compile IPDIVERT into the kernel
> > and avoid the indirect calls?
> 
> IPDIVERT can hardly be called a performance/latency critical path.  The
> entire copyout of the packet to userland for nat'ing and copyin again
> make the function pointer indirection such a small factor that it doesn't
> make any difference whatsoever.
> 
Err.  divert(4) sockets can also be accessed through the ng_ksocket(4)
interface, in which case no userland-kernel copying takes place.  So
the performance does matter.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20041021/518b2122/attachment.bin


More information about the cvs-src mailing list