tcp output question
Kazuaki Oda
kaakun at highway.ne.jp
Thu Apr 21 10:17:16 PDT 2005
Hi, list,
I'm reading FreeBSD's network codes, and I have noticed that we call
tcp_output() from tcp_usr_send() with tcbinfo locked. According to the
comment in the tcp_usr_send(), we must call tcp_connect() or
tcp_usrclosed() with tcbinfo locked. But it seems that we does not need to
lock it to call tcp_output(). Is there any reason not to unlock it before
calling tcp_output()? I have tried the attached patch, so I get about
10-20% performance up when running my test server program.
-------------------
Kazuaki Oda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tcp_usrreq.c.patch
Type: text/x-patch
Size: 851 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20050422/43d2642f/tcp_usrreq.c.bin
More information about the freebsd-net
mailing list