Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jul 2014 16:17:49 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268165 - head/sys/dev/bge
Message-ID:  <201407021617.s62GHnDc048195@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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 |



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