From owner-freebsd-net@FreeBSD.ORG Thu Mar 27 00:31:45 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 289F9397; Thu, 27 Mar 2014 00:31:45 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id CE23C19E; Thu, 27 Mar 2014 00:31:44 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEANtwM1ODaFve/2dsb2JhbABZhBiDCr94gTB0giUBAQEEIwRSGw4KAgINGQJZBhOHea5roloXgSmNFDQHgm+BSQSrAINKIYFu X-IronPort-AV: E=Sophos;i="4.97,738,1389762000"; d="scan'208";a="109332261" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 26 Mar 2014 20:31:43 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 83BB7B4095; Wed, 26 Mar 2014 20:31:43 -0400 (EDT) Date: Wed, 26 Mar 2014 20:31:43 -0400 (EDT) From: Rick Macklem To: Christopher Forgeron Message-ID: <1353469098.1239101.1395880303531.JavaMail.root@uoguelph.ca> In-Reply-To: Subject: Re: 9.2 ixgbe tx queue hang MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.202] X-Mailer: Zimbra 7.2.1_GA_2790 (ZimbraWebClient - FF3.0 (Win)/7.2.1_GA_2790) Cc: FreeBSD Net , Garrett Wollman , Jack Vogel , Markus Gebert X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2014 00:31:45 -0000 Christopher Forgeron wrote: > > > > > > On Tue, Mar 25, 2014 at 8:21 PM, Markus Gebert < > markus.gebert@hostpoint.ch > wrote: > > > > > > Is 65517 correct? With Ricks patch, I get this: > > dev.ix.0.hw_tsomax: 65518 > > > > Perhaps a difference between 9.2 and 10 for one of the macros? My > code is: > > ifp->if_hw_tsomax = IP_MAXPACKET - (ETHER_HDR_LEN + > ETHER_VLAN_ENCAP_LEN); > printf("CSF - 3 Init, ifp->if_hw_tsomax = %d\n", ifp->if_hw_tsomax); > The difference is simply that IP_MAXPACKET == 65535, but I've been using 32 * MCLBYTES == 65536 (the latter is the amount of data m_defrag() can squeeze into 32 mbuf clusters). ie. I've suggested: ifp->if_hw_tsomax = min(32 * MCLBYTES - (ETHER_HDR_LEN + ETHER_VLAN_ENCAP_LEN), IP_MAXPACKET); - I put the min() in just so it wouldn't break if MCLBYTES is increased someday. rick > > (BTW, you should submit the hw_tsomax sysctl patch, that's useful to > others) > > > > > > Also the dtrace command you used excludes 65518... > > > > Oh, I thought it was giving every packet that is greater than or > equal to 65518 - Could you show me the proper command? That's the > third time I've used dtrace, so I'm making this up as I go. :-) >