created | 2024-07-16T06:10:35Z |
---|---|
begin | 2024-07-12T08:33:25Z |
end | 2024-07-12T09:25:27Z |
path | src/sys |
commits | 1 |
date | 2024-07-12T09:25:27Z | |||
---|---|---|---|---|
author | bluhm | |||
files | src/sys/net/pf.c | log | diff | annotate |
src/sys/netinet/ip_icmp.c | log | diff | annotate | |
src/sys/netinet/ip_input.c | log | diff | annotate | |
message |
Run sysctl net.inet.ip.forwarding without net lock. The places in packet processing where ip_forwarding is evaluated have been consolidated. The remaining pieces in pf test, ip input, and icmp input do not need consistent information. If the integer value is changed by another CPU, it is harmless. The sysctl syscall sets the value atomically, so add atomic read in network processing and remove the net lock in sysctl IPCTL_FORWARDING. OK claudio@ mvs@ |