CVSROOT:        /cvs
Module name:    src
Changes by:     bl...@cvs.openbsd.org   2025/01/03 14:27:41

Modified files:
        sys/net        : if_loop.c route.c route.h rtsock.c 
        sys/netinet    : ip_icmp.c ip_input.c ip_output.c tcp_input.c 
        sys/netinet6   : icmp6.c ip6_forward.c ip6_output.c 
        sys/sys        : atomic.h 

Log message:
Use atomic operations to modify the MTU of route.

When unlocking TCP, path MTU discovery will run in parallel.  To
keep route MTU consistent, make access to rt_mtu atomic.  Use
compare-and-swap function to detect whether another thread is
modifying the MTU field.  In this case skip updating rt_mtu.

OK mvs@

Reply via email to