Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Sep 2008 07:53:22 GMT
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 149519 for review
Message-ID:  <200809100753.m8A7rMvU076400@repoman.freebsd.org>

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

Change 149519 by julian@julian_trafmon1 on 2008/09/10 07:53:03

	 some missing INIT_VNET_XXX calls

Affected files ...

.. //depot/projects/vimage/src/sys/contrib/pf/net/pf_subr.c#7 edit
.. //depot/projects/vimage/src/sys/contrib/rdma/rdma_cma.c#3 edit

Differences ...

==== //depot/projects/vimage/src/sys/contrib/pf/net/pf_subr.c#7 (text+ko) ====

@@ -127,6 +127,7 @@
 u_int32_t
 pf_new_isn(struct pf_state *s)
 {
+	INIT_VNET_INET(curvnet);
 	u_int32_t md5_buffer[4];
 	u_int32_t new_isn;
 	struct pf_state_host *src, *dst;

==== //depot/projects/vimage/src/sys/contrib/rdma/rdma_cma.c#3 (text+ko) ====

@@ -48,8 +48,10 @@
 #include <sys/syslog.h>
 #include <sys/vimage.h>
 
+#include <net/if.h>
 #include <netinet/in.h>
 #include <netinet/in_pcb.h>
+#include <netinet/vinet.h>
 
 #include <contrib/rdma/rdma_cm.h>
 #include <contrib/rdma/ib_cache.h>
@@ -1947,6 +1949,7 @@
 
 static int cma_alloc_any_port(struct kvl *ps, struct rdma_id_private *id_priv)
 {
+	INIT_VNET_INET(curvnet);
 	struct rdma_bind_list *bind_list;
 	int port, ret;
 
@@ -1991,6 +1994,7 @@
 
 static int cma_use_port(struct kvl *ps, struct rdma_id_private *id_priv)
 {
+	INIT_VNET_INET(curvnet);
 	struct rdma_id_private *cur_id;
 	struct sockaddr_in *sin, *cur_sin;
 	struct rdma_bind_list *bind_list;
@@ -2910,6 +2914,7 @@
 
 static int cma_init(void)
 {
+	INIT_VNET_INET(curvnet);
 	int ret;
 
 	LIST_INIT(&listen_any_list);



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