Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci From dyoung@ -- bump max TX DMA size to avoid pa...
details: https://anonhg.NetBSD.org/src/rev/0ae8e1f88b35
branches: trunk
changeset: 329489:0ae8e1f88b35
user: tls <tls%NetBSD.org@localhost>
date: Tue May 27 02:21:29 2014 +0000
description:
>From dyoung@ -- bump max TX DMA size to avoid pathological condition with TSO.
diffstat:
sys/dev/pci/if_wm.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7822b6542477 -r 0ae8e1f88b35 sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Mon May 26 20:07:25 2014 +0000
+++ b/sys/dev/pci/if_wm.c Tue May 27 02:21:29 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.268 2014/03/29 19:28:25 christos Exp $ */
+/* $NetBSD: if_wm.c,v 1.269 2014/05/27 02:21:29 tls Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.268 2014/03/29 19:28:25 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.269 2014/05/27 02:21:29 tls Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -167,7 +167,7 @@
#define WM_NEXTTX(sc, x) (((x) + 1) & WM_NTXDESC_MASK(sc))
#define WM_NEXTTXS(sc, x) (((x) + 1) & WM_TXQUEUELEN_MASK(sc))
-#define WM_MAXTXDMA round_page(IP_MAXPACKET) /* for TSO */
+#define WM_MAXTXDMA (2 * round_page(IP_MAXPACKET)) /* for TSO */
/*
* Receive descriptor list size. We have one Rx buffer for normal
Home |
Main Index |
Thread Index |
Old Index