From owner-freebsd-net@FreeBSD.ORG Fri Nov 29 22:39:52 2013 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D588FDAB; Fri, 29 Nov 2013 22:39:52 +0000 (UTC) Received: from mail-qa0-x22e.google.com (mail-qa0-x22e.google.com [IPv6:2607:f8b0:400d:c00::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7F89F1365; Fri, 29 Nov 2013 22:39:52 +0000 (UTC) Received: by mail-qa0-f46.google.com with SMTP id f11so2313989qae.5 for ; Fri, 29 Nov 2013 14:39:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=84NIxTfuhGB4btq0kBeGXo+LC7eDQtDDKB6GtaKDVl4=; b=PdJWXRduwI4BfSR33Bf/O7KZM5ZcOV2mgWP5ApgcB0buSOzORmA1hGd9n6mgmjocVw RVcEjBCSLUldT9/CS+vEuGaM59Koci21vXEzzuQ+sjwwHtQr9EJxciXCmn46I2mfQAs+ NpIo2uen4NPjcBI4FoEjeJzKbXjGD/PRK1YIcbm8Nwj7CNrfeARo7BkvQCdXZ6wUJ/EL Tf3U0buLUs+27XWCnlPZbApK1bqOf80+tzt36u0eqX7Rolnd6Blyhhl/ZFJrLKkUoOcU mzBmjR7nfPW4VcwD4+HmloW50mWMlKKKPqKSQLtCzyzlt9r7LGhTzHpmTmb4ahbbByBo ZOrA== MIME-Version: 1.0 X-Received: by 10.49.24.163 with SMTP id v3mr29869210qef.78.1385764791636; Fri, 29 Nov 2013 14:39:51 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.53.200 with HTTP; Fri, 29 Nov 2013 14:39:51 -0800 (PST) In-Reply-To: <5298BD5D.3020203@freebsd.org> References: <52987E27.10503@freebsd.org> <8C291076-5F03-4406-B689-A3185E6DD313@lurchi.franken.de> <5298BD5D.3020203@freebsd.org> Date: Fri, 29 Nov 2013 14:39:51 -0800 X-Google-Sender-Auth: hOVeW7_8KQ2fUvFcGxwubfNJPSw Message-ID: Subject: Re: ip_output()/if_output() behaviour From: Adrian Chadd To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 Cc: Michael Tuexen , "freebsd-net@freebsd.org list" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.16 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, 29 Nov 2013 22:39:52 -0000 +1 On 29 November 2013 08:14, Julian Elischer wrote: >> ifnet(9) says: >> >> if_transmit() >> Transmit a packet on an interface or queue it if the interface >> is >> in use. This function will return ENOBUFS if the devices >> software >> and hardware queues are both full. ... >> >> So I guess returning ENOBUFS when the packet was queued is wrong... > > I think it is. > > ENOBUFS means "I couldn't proceed due to no buffers" > not "I used up the last one on this operation". Yes, it's wrong. ENOBUFS means "couldn't queue; no buffers." Please provide a diff against igb and I'll make sure Jack/Intel get it into (his, freebsd) tree. Thanks! -adrian