]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: Allocate and free pfi_kkif in separate functions
authorKristof Provost <kp@FreeBSD.org>
Sun, 13 Dec 2020 10:36:54 +0000 (11:36 +0100)
committerKristof Provost <kp@FreeBSD.org>
Wed, 20 Jan 2021 14:16:05 +0000 (15:16 +0100)
commitce26f0988baff60505bfd4eba006abe25ee722bf
tree47c4c38dfcd8b6889829333fdc16364f22f6d9f1
parent051f0103dc196ac29d7ec2e1f1c3f99a295cae64
pf: Allocate and free pfi_kkif in separate functions

Factor out allocating and freeing pfi_kkif structures. This will be
useful when we change the counters to be counter_u64, so we don't have
to deal with that complexity in the multiple locations where we allocate
pfi_kkif structures.

No functional change.

MFC after: 2 weeks
Sponsored by: Orange Business Services
Differential Revision: https://reviews.freebsd.org/D27762

(cherry picked from commit 26c841e2a402ed43896313d1b3f00facaa9d839f)
sys/net/pfvar.h
sys/netpfil/pf/pf_if.c
sys/netpfil/pf/pf_ioctl.c