HomeFreeBSD

ipfilter: Avoid allocating a new ipf token when not needed

Description

ipfilter: Avoid allocating a new ipf token when not needed

Only allocate a new ipftoken_t if one cannot be found. This eliminates
allocating unnecessary token structures that will never be used when
performing simple lookups for existing token structures.

MFC after: 2 weeks

Details

Provenance
cyAuthored on Sep 12 2023, 8:29 PM
Parents
rG81c5f0fac91d: sctp: improve shutting down the read side of a socket
Branches
Unknown
Tags
Unknown