1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00
openbsd-src/sys/netmpls
mvs 7af15f03da Push kernel lock down to net_sysctl().
All except PF_MPLS paths are mp-safe:
- net_link_sysctl() and following net_ifiq_sysctl() only return
  EOPNOTSUPP;
- uipc_sysctl() - mp-safe atomic access to integers;
- bpf_sysctl() - mp-safe atomic access to integers;
- pflow_sysctl() - returns statistics from per-CPU counters;
- pipex_sysctl() - mp-safe atomic access to integer;

Push kernel lock down to mpls_sysctl(). sysctl_int_bounded() do copying
with local variable, so context switch is safe. No need to wire memory
or take `sysctl_lock' rwlock(9).

Keep protocols locked as they was include pages wiring. Copying will not
sleep - no network slowdown while doing it with net lock held.

ok bluhm
2024-08-14 17:52:47 +00:00
..
mpls_input.c Instead of implementing IPv4 header checksum creation everywhere, 2023-05-13 13:35:17 +00:00
mpls_output.c Instead of implementing IPv4 header checksum creation everywhere, 2023-05-13 13:35:17 +00:00
mpls_proto.c Delete unnecessary #includes of <sys/domain.h> and/or <sys/protosw.h> 2022-02-22 01:15:01 +00:00
mpls_raw.c Push kernel lock down to net_sysctl(). 2024-08-14 17:52:47 +00:00
mpls_shim.c
mpls.h As network features are not added dynamically, the domain structures 2021-05-25 22:45:09 +00:00