Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jan 2021 14:44:58 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7ee74e43abb7 - stable/12 - pf: Remove unused fields from pf_krule
Message-ID:  <202101201444.10KEiwxJ019407@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=7ee74e43abb78af75cc381bafbc30c9d5340b09d

commit 7ee74e43abb78af75cc381bafbc30c9d5340b09d
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2020-12-05 13:38:12 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-01-20 14:16:04 +0000

    pf: Remove unused fields from pf_krule
    
    The u_* counters are used only to communicate with userspace, as
    userspace cannot use counter_u64. As pf_krule is not passed to userspace
    these fields are now obsolete.
    
    MFC after:      2 weeks
    Sponsored by:   Orange Business Services
    Differential Revision:  https://reviews.freebsd.org/D27759
    
    (cherry picked from commit c7bdafe2f1b703fdf72489019edc3d6b9e5483da)
---
 sys/net/pfvar.h | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/sys/net/pfvar.h b/sys/net/pfvar.h
index 4dd2db1a34b9..5b77b0a6c4e2 100644
--- a/sys/net/pfvar.h
+++ b/sys/net/pfvar.h
@@ -391,10 +391,6 @@ struct pf_krule {
 		struct pf_addr		addr;
 		u_int16_t		port;
 	}			divert;
-
-	uint64_t		 u_states_cur;
-	uint64_t		 u_states_tot;
-	uint64_t		 u_src_nodes;
 };
 
 struct pf_ksrc_node {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101201444.10KEiwxJ019407>