Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jul 2007 19:19:11 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 123031 for review
Message-ID:  <200707061919.l66JJBZD053474@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=123031

Change 123031 by zec@zec_tpx32 on 2007/07/06 19:18:48

	Don't compile in a few INIT_VNET_INET macros when the
	variables it creates are not used.

Affected files ...

.. //depot/projects/vimage/src/sys/netinet/tcp_timewait.c#7 edit

Differences ...

==== //depot/projects/vimage/src/sys/netinet/tcp_timewait.c#7 (text+ko) ====

@@ -191,7 +191,9 @@
 void
 tcp_twstart(struct tcpcb *tp)
 {
+#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
 	INIT_VNET_INET(tp->t_vnet);
+#endif
 	struct tcptw *tw;
 	struct inpcb *inp = tp->t_inpcb;
 	int acknow;
@@ -330,7 +332,9 @@
 tcp_twcheck(struct inpcb *inp, struct tcpopt *to, struct tcphdr *th,
     struct mbuf *m, int tlen)
 {
+#if defined(INVARIANTS) || defined(INVARIANT_SUPPORT)
 	INIT_VNET_INET(curvnet);
+#endif
 	struct tcptw *tw;
 	int thflags;
 	tcp_seq seq;



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