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)

Details

Provenance
zleiAuthored on Jun 7 2024, 3:06 PM
Reviewer
network
Differential Revision
D45509: bpf: Make bpf_peers_present a boolean inline function
Parents
rGa674f992a135: if_enc(4): Prefer the boolean form when calling bpf_peers_present()
Branches
Unknown
Tags
Unknown