HomeFreeBSD

bpf: Make bpf_peers_present a boolean inline function

Description

bpf: Make bpf_peers_present a boolean inline function

This function was introduced in commit [1] and is actually used as a
boolean function although it was not defined as so.

No functional change intended.

  1. 16d878cc99ef Fix the following bpf(4) race condition which can result in a panic

Reviewed by: markj, kp, network
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D45509

(cherry picked from commit 0dfd11abc4bd0dcb96a6d287cc4e52e8f59b64c1)
(cherry picked from commit 6ad2e347fcf8fa6aa9ebd84cfa4c71a1af90b4dd)

Details

Provenance
zleiAuthored on Jun 7 2024, 3:06 PM
Parents
rG43bb3553f1d5: if_enc(4): Prefer the boolean form when calling bpf_peers_present()
Branches
Unknown
Tags
Unknown