svn commit: r268165 - head/sys/dev/bge

Marcel Moolenaar marcel at FreeBSD.org
Wed Jul 2 16:17:49 UTC 2014


Author: marcel
Date: Wed Jul  2 16:17:48 2014
New Revision: 268165
URL: http://svnweb.freebsd.org/changeset/base/268165

Log:
  Fix off-by-one introduced by the conversion to the driver API.
  
  Submitted by:   Sreekanth Rupavatharam <rupavath at juniper.net>
  Obtained from:  Juniper Networks, Inc.

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Wed Jul  2 16:11:59 2014	(r268164)
+++ head/sys/dev/bge/if_bge.c	Wed Jul  2 16:17:48 2014	(r268165)
@@ -3738,7 +3738,7 @@ bge_attach(device_t dev)
 	if_setioctlfn(ifp, bge_ioctl);
 	if_setstartfn(ifp, bge_start);
 	if_setinitfn(ifp, bge_init);
-	if_setsendqlen(ifp, BGE_TX_RING_CNT);
+	if_setsendqlen(ifp, BGE_TX_RING_CNT - 1);
 	if_setsendqready(ifp);
 	if_sethwassist(ifp, sc->bge_csum_features);
 	if_setcapabilities(ifp, IFCAP_HWCSUM | IFCAP_VLAN_HWTAGGING |


More information about the svn-src-head mailing list