cvs commit: src/sys/netinet in_pcb.c ip_output.c src/sys/net route.c route.h

Sepherosa Ziehau sepherosa at gmail.com
Thu Sep 11 04:31:02 PDT 2008


On Thu, Sep 11, 2008 at 7:23 PM, Sepherosa Ziehau
<sephe at crater.dragonflybsd.org> wrote:
> sephe       2008/09/11 04:23:29 PDT
>
> DragonFly src repository
>
>  Modified files:
>    sys/netinet          in_pcb.c ip_output.c
>    sys/net              route.c route.h
>  Log:
>  - Add rtfree_remote(), which send rtentry to its owner CPU to be freed.
>    Print backtrace, if net.route.remote_free_panic is 0.  This function
>    only serves as _temporary_ workaround.
>  - In ip_output(), if passed rtentry cache's owner CPU is not the current,
>    then keep it untouched and use the stack variable to relocate the route.
>    Add comment about it.  This at least could happen in the following
>    callgraph on a TCP socket, on which listen(2) has been called:
>    ip_input() -> tcp_input() -> tcp_respond() -> ip_output()

I suggest to set net.route.remote_free_panic to 1, if you have SMP
testing boxes.

Best Regards,
sephe

-- 
Live Free or Die





More information about the Commits mailing list