Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libshmif * increase bus size so that we don...
details: https://anonhg.NetBSD.org/src/rev/a81f7f2b0da8
branches: trunk
changeset: 756719:a81f7f2b0da8
user: pooka <pooka%NetBSD.org@localhost>
date: Thu Jul 29 18:30:39 2010 +0000
description:
* increase bus size so that we don't wrap so quickly when NFS
flushes writes
* verbosize debug print a bit
diffstat:
sys/rump/net/lib/libshmif/if_shmem.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 2b4bf4950473 -r a81f7f2b0da8 sys/rump/net/lib/libshmif/if_shmem.c
--- a/sys/rump/net/lib/libshmif/if_shmem.c Thu Jul 29 18:25:19 2010 +0000
+++ b/sys/rump/net/lib/libshmif/if_shmem.c Thu Jul 29 18:30:39 2010 +0000
@@ -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;
}
- Prev by Date:
[src/trunk]: src/share/misc BMC, FWH, GAS, GMCH, ICH, IMC, LPC, MCH, TPM.
- Next by Date:
[src/trunk]: src Add fwhrng(4). Ok jakllsch@.
- Previous by Thread:
[src/trunk]: src/share/misc BMC, FWH, GAS, GMCH, ICH, IMC, LPC, MCH, TPM.
- Next by Thread:
[src/trunk]: src Add fwhrng(4). Ok jakllsch@.
- Indexes:
Home |
Main Index |
Thread Index |
Old Index