From owner-svn-src-all@FreeBSD.ORG Wed Apr 15 22:22:00 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C16A1106564A; Wed, 15 Apr 2009 22:22:00 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id AFB478FC0A; Wed, 15 Apr 2009 22:22:00 +0000 (UTC) (envelope-from kmacy@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n3FMM0CQ056564; Wed, 15 Apr 2009 22:22:00 GMT (envelope-from kmacy@svn.freebsd.org) Received: (from kmacy@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3FMM0U0056563; Wed, 15 Apr 2009 22:22:00 GMT (envelope-from kmacy@svn.freebsd.org) Message-Id: <200904152222.n3FMM0U0056563@svn.freebsd.org> From: Kip Macy Date: Wed, 15 Apr 2009 22:22:00 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r191129 - head/sys/netinet X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Apr 2009 22:22:01 -0000 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)