Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Apr 2009 22:22:00 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191129 - head/sys/netinet
Message-ID:  <200904152222.n3FMM0U0056563@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kmacy
Date: Wed Apr 15 22:22:00 2009
New Revision: 191129
URL: http://svn.freebsd.org/changeset/base/191129

Log:
  - convert pspare pointers in inpcb to an llentry and rtentry cache
  - add flags to indicate their validity

Modified:
  head/sys/netinet/in_pcb.h

Modified: head/sys/netinet/in_pcb.h
==============================================================================
--- head/sys/netinet/in_pcb.h	Wed Apr 15 22:11:04 2009	(r191128)
+++ head/sys/netinet/in_pcb.h	Wed Apr 15 22:22:00 2009	(r191129)
@@ -170,7 +170,8 @@ struct inpcb {
 	u_char	inp_ip_minttl;		/* (i) minimum TTL or drop */
 	uint32_t inp_flowid;		/* (x) flow id / queue id */
 	u_int	inp_refcount;		/* (i) refcount */
-	void	*inp_pspare[2];		/* (x) rtentry / general use */
+	struct llentry	*inp_lle;	/* cached L2 information */
+	struct rtentry	*inp_rt;	/* cached L3 information */
 
 	/* Local and foreign ports, local and foreign addr. */
 	struct	in_conninfo inp_inc;	/* (i/p) list for PCB's local port */
@@ -433,6 +434,8 @@ void 	inp_4tuple_get(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	INPLOOKUP_WILDCARD	1
 #define	sotoinpcb(so)	((struct inpcb *)(so)->so_pcb)



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