aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2018-09-06 19:55:40 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2018-09-06 19:55:40 +0000
commit113c4fad559294e279b6d1bd23c11efeb070b9a8 (patch)
tree1cde83a1cfd8d4cc1174f3b9d1bb1da7aa4c0927
parent12360b3079c2ec84cbfeee0a9d00b580c5135550 (diff)
downloadsrc-113c4fad559294e279b6d1bd23c11efeb070b9a8.tar.gz
src-113c4fad559294e279b6d1bd23c11efeb070b9a8.zip
The inp_lle field to struct inpcb, along with two "valid" flags
for the rt and lle cache were added in r191129 (2009). To my best knowledge they have never been used and route caching has converted the inp_rt field from that commit to inp_route rendering this field and these flags obsolete. Convert the pointer into a spare pointer to not change the size of the structure anymore (and to have a spare pointer) and mark the two fields as unused. Reviewed by: markj, karels Approved by: re (gjb) Differential Revision: https://reviews.freebsd.org/D17062
Notes
Notes: svn path=/head/; revision=338509
-rw-r--r--sys/netinet/in_pcb.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 31009099e6f7..d3677118bbec 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -320,7 +320,7 @@ struct inpcb {
CK_LIST_ENTRY(inpcb) inp_portlist; /* (i/h) */
struct inpcbport *inp_phd; /* (i/h) head of this list */
inp_gen_t inp_gencnt; /* (c) generation count */
- struct llentry *inp_lle; /* cached L2 information */
+ void *spare_ptr; /* Spare pointer. */
rt_gen_t inp_rt_cookie; /* generation for route entry */
union { /* cached L3 information */
struct route inp_route;
@@ -744,8 +744,8 @@ int inp_so_options(const struct inpcb *inp);
/*
* Flags for inp_flags2.
*/
-#define INP_LLE_VALID 0x00000001 /* cached lle is valid */
-#define INP_RT_VALID 0x00000002 /* cached rtentry is valid */
+#define INP_2UNUSED1 0x00000001
+#define INP_2UNUSED2 0x00000002
#define INP_PCBGROUPWILD 0x00000004 /* in pcbgroup wildcard list */
#define INP_REUSEPORT 0x00000008 /* SO_REUSEPORT option is set */
#define INP_FREED 0x00000010 /* inp itself is not valid */