HomeFreeBSD

pf: qid and pqid can be uint16_t

Description

pf: qid and pqid can be uint16_t

tag2name() returns a uint16_t, so we don't need to use uint32_t for the
qid (or pqid). This reduces the size of struct pf_kstate slightly. That
in turn buys us space to add extra fields for dummynet later.

Happily these fields are not exposed to user space (there are user space
versions of them, but they can just stay uint32_t), so there's no ABI
breakage in modifying this.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D31873

(cherry picked from commit b64f7ce98f5286721a38b31fa2180313f800fb1d)

Details

Provenance
kpAuthored on Sep 7 2021, 12:41 PM
Differential Revision
D31873: pf: qid and pqid can be uint16_t
Parents
rG2134d9f05faa: pf tests: synproxy to localhost test
Branches
Unknown
Tags
Unknown