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
This commit is contained in:
parent
12360b3079
commit
113c4fad55
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338509
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user