OpenBSD cvs log

created 2024-07-21T09:54:02Z
begin 2024-07-19T00:00:00Z
end 2024-07-20T00:00:00Z
path src/sys
commits 3

date 2024-07-19T15:41:58Z
author bluhm
files src/sys/netinet/udp_usrreq.c log diff annotate
message Relax socket lock assertion in UDP input and send.

OK mvs@

date 2024-07-19T16:58:31Z
author bluhm
files src/sys/netinet/ip_input.c log diff annotate
message Unlock sysctl net.inet.ip.redirect and net.inet6.ip6.redirect.

Variable ip and ip6 sendredirects is only read once during packet
processing. Use atomic_load_int() to access the value in exactly
one read instruction. No memory barriers needed as there is no
correlation with other values.
Sort the ip and ip6 checks, so the difference is easier to see.
Move access to global variable to the end.

OK mvs@

date 2024-07-19T16:58:32Z
author bluhm
files src/sys/netinet6/in6_proto.c log diff annotate
src/sys/netinet6/ip6_forward.c log diff annotate
src/sys/netinet6/ip6_input.c log diff annotate
message Unlock sysctl net.inet.ip.redirect and net.inet6.ip6.redirect.

Variable ip and ip6 sendredirects is only read once during packet
processing. Use atomic_load_int() to access the value in exactly
one read instruction. No memory barriers needed as there is no
correlation with other values.
Sort the ip and ip6 checks, so the difference is easier to see.
Move access to global variable to the end.

OK mvs@