tcp output question

From: Kazuaki Oda (kaakun_at_highway.ne.jp)
Date: 04/21/05

  • Next message: Karim Fodil-Lemelin: "ipfw fwd to localhost"
    Date: Fri, 22 Apr 2005 02:16:57 +0900
    To: freebsd-net@freebsd.org
    
    
    

    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

    
    
    

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"



  • Next message: Karim Fodil-Lemelin: "ipfw fwd to localhost"