Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Dec 2009 20:59:18 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200543 - head/sys/dev/vge
Message-ID:  <200912142059.nBEKxIIx038201@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon Dec 14 20:59:18 2009
New Revision: 200543
URL: http://svn.freebsd.org/changeset/base/200543

Log:
  Increase output queue size from 64 to 255.

Modified:
  head/sys/dev/vge/if_vge.c
  head/sys/dev/vge/if_vgevar.h

Modified: head/sys/dev/vge/if_vge.c
==============================================================================
--- head/sys/dev/vge/if_vge.c	Mon Dec 14 20:59:01 2009	(r200542)
+++ head/sys/dev/vge/if_vge.c	Mon Dec 14 20:59:18 2009	(r200543)
@@ -1061,8 +1061,8 @@ vge_attach(device_t dev)
 	ifp->if_capabilities |= IFCAP_POLLING;
 #endif
 	ifp->if_init = vge_init;
-	IFQ_SET_MAXLEN(&ifp->if_snd, VGE_IFQ_MAXLEN);
-	ifp->if_snd.ifq_drv_maxlen = VGE_IFQ_MAXLEN;
+	IFQ_SET_MAXLEN(&ifp->if_snd, VGE_TX_DESC_CNT - 1);
+	ifp->if_snd.ifq_drv_maxlen = VGE_TX_DESC_CNT - 1;
 	IFQ_SET_READY(&ifp->if_snd);
 
 	/*

Modified: head/sys/dev/vge/if_vgevar.h
==============================================================================
--- head/sys/dev/vge/if_vgevar.h	Mon Dec 14 20:59:01 2009	(r200542)
+++ head/sys/dev/vge/if_vgevar.h	Mon Dec 14 20:59:18 2009	(r200543)
@@ -34,8 +34,6 @@
 
 #define VGE_JUMBO_MTU	9000
 
-#define VGE_IFQ_MAXLEN 64
-
 #define VGE_TX_DESC_CNT		256
 #define VGE_RX_DESC_CNT		252	/* Must be a multiple of 4!! */
 #define VGE_TX_RING_ALIGN	64



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