diff options
author | Zhenlei Huang <zlei@FreeBSD.org> | 2024-06-09 01:05:22 +0000 |
---|---|---|
committer | Zhenlei Huang <zlei@FreeBSD.org> | 2024-06-09 01:05:22 +0000 |
commit | 2671bde99295d9e01d10316d0f3fb8b6d21f0f4d (patch) | |
tree | 7b8bbd18aac33224c533ee1c3fb31b77535f3a43 /secure/usr.sbin/sshd/(developers-only) | |
parent | ebc2bab04823c24c524f913457d6b88dc7ea9fac (diff) | |
download | src-main.tar.gz src-main.zip |
On creating the pfsync(4) interface, pfsync_clone_create() does an
unconditional bpfattach(). Use bpf_peers_present() which was introduced
in commit 16d878cc99ef [1] to check the presence of bpf peers.
This will save a little CPU cycles and memory usage when the
synchronisation interface is not configured and there is no bpf peers
present. There should be no functional change.
1. 16d878cc99ef Fix the following bpf(4) race condition which can result in a panic
Reviewed by: kp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45533
Diffstat (limited to 'secure/usr.sbin/sshd/(developers-only)')
0 files changed, 0 insertions, 0 deletions