From owner-freebsd-net@FreeBSD.ORG Fri Dec 13 20:57:46 2013 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 69D1CD72; Fri, 13 Dec 2013 20:57:46 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 402351CCA; Fri, 13 Dec 2013 20:57:46 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 1D269B9A3; Fri, 13 Dec 2013 15:57:45 -0500 (EST) From: John Baldwin To: freebsd-net@freebsd.org Subject: Re: A small fix for if_em.c, if_igb.c, if_ixgbe.c Date: Fri, 13 Dec 2013 13:26:28 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <521B9C2A-EECC-4412-9F68-2235320EF324@lurchi.franken.de> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201312131326.28952.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 13 Dec 2013 15:57:45 -0500 (EST) Cc: Yong-Hyeon Pyun , Michael Tuexen , Adrian Chadd , Jack F Vogel , John-Mark Gurney 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: Fri, 13 Dec 2013 20:57:46 -0000 On Monday, December 09, 2013 2:37:08 pm Adrian Chadd wrote: > Jack / John - thoughts? Note that if_start has always worked the way if_transmit would work with the err = 0 change. All the other drivers in the tree are already giving you an error if an earlier packet in the IFQ fails to transmit, and it's been that way for decades. If you decide to make if_transmit precise (only return an error if the specific packet fails), the corresponding change for if_start() drivers would be to never return an error ever. It's not clear to me what the impact of that would be. However, the current patch to return 0 in the drbr_putback case would at least restore things to the previous status quo from the past few decades for both if_start() and if_transmit() drivers. -- John Baldwin