Module Name:    src
Committed By:   pooka
Date:           Thu Jul 29 18:30:39 UTC 2010

Modified Files:
        src/sys/rump/net/lib/libshmif: if_shmem.c

Log Message:
* increase bus size so that we don't wrap so quickly when NFS
  flushes writes
* verbosize debug print a bit


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/rump/net/lib/libshmif/if_shmem.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/net/lib/libshmif/if_shmem.c
diff -u src/sys/rump/net/lib/libshmif/if_shmem.c:1.10 src/sys/rump/net/lib/libshmif/if_shmem.c:1.11
--- src/sys/rump/net/lib/libshmif/if_shmem.c:1.10	Mon Nov 30 11:14:58 2009
+++ src/sys/rump/net/lib/libshmif/if_shmem.c	Thu Jul 29 18:30:39 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_shmem.c,v 1.10 2009/11/30 11:14:58 pooka Exp $	*/
+/*	$NetBSD: if_shmem.c,v 1.11 2010/07/29 18:30:39 pooka Exp $	*/
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.10 2009/11/30 11:14:58 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.11 2010/07/29 18:30:39 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/fcntl.h>
@@ -83,7 +83,7 @@
 
 #define BUSCTRL_ATOFF(sc, off)	((uint32_t *)(sc->sc_busmem+(off)))
 
-#define BUSMEM_SIZE 65536 /* enough? */
+#define BUSMEM_SIZE (1024*1024) /* need write throttling? */
 
 static void shmif_rcv(void *);
 
@@ -345,7 +345,8 @@
 		    || (busgen > sc->sc_prevgen+1)) {
 			nextpkt = lastpkt;
 			sc->sc_prevgen = busgen;
-			rumpuser_dprintf("DROPPING\n");
+			rumpuser_dprintf("shmif_rcv: generation overrun, "
+			    "skipping invalid packets\n");
 		} else {
 			nextpkt = sc->sc_nextpacket;
 		}

Reply via email to