From owner-freebsd-net@FreeBSD.ORG Thu Dec 5 22:01:39 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 9F26FD79; Thu, 5 Dec 2013 22:01:39 +0000 (UTC) Received: from mail-qe0-x22d.google.com (mail-qe0-x22d.google.com [IPv6:2607:f8b0:400d:c02::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 47B811FB8; Thu, 5 Dec 2013 22:01:39 +0000 (UTC) Received: by mail-qe0-f45.google.com with SMTP id 6so18006147qea.32 for ; Thu, 05 Dec 2013 14:01:38 -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=u1PSICOLJ42xaneOr7sr51F8D9iFoAXIuPsswbBOP5E=; b=cRFfFZLRwcikolmBhurz5tIabVn/+/lUEIpmiyuE5iF+PfzeBZ1/4ixW93cJhphNT9 BcZMpQ8HlMJzcNGn1jo0kR+jBTATcwskL+f4OsqkxD+Ct3lvMqx+IARB7E0CDB+08zjk xodUV8VRLGGRCThZB2UNCVauIgvWdPnVL6TIEed27bp86T6E7BbO+sRZu7Eu+725AWv9 gGDOo0eAp2hWkmHrzKTfQqndoLtW6t2IlkNSQOMphzvZn1n7rAV97lxhCzEosE/j7M/x iJniXwcNVsONYF87mkK+0mp6gdY721NUK7G12faPXuT8/Ixe9H7/qllP1hP7+pUjo036 evCg== MIME-Version: 1.0 X-Received: by 10.229.137.69 with SMTP id v5mr633018qct.4.1386280898446; Thu, 05 Dec 2013 14:01:38 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.53.200 with HTTP; Thu, 5 Dec 2013 14:01:38 -0800 (PST) In-Reply-To: References: <521B9C2A-EECC-4412-9F68-2235320EF324@lurchi.franken.de> <20131202022338.GA3500@michelle.cdnetworks.com> <20131203021658.GC2981@michelle.cdnetworks.com> Date: Thu, 5 Dec 2013 14:01:38 -0800 X-Google-Sender-Auth: Q9_u_SdHfVKBB2BXEE5tt5WEKS4 Message-ID: Subject: Re: A small fix for if_em.c, if_igb.c, if_ixgbe.c From: Adrian Chadd To: Michael Tuexen Content-Type: text/plain; charset=ISO-8859-1 Cc: Yong-Hyeon Pyun , Jack F Vogel , "freebsd-net@freebsd.org list" 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, 05 Dec 2013 22:01:39 -0000 On 5 December 2013 13:05, Michael Tuexen wrote: > Just to be clear: This would mean that xxx_transmit() would return > an error even if the packet provided in the call xxx_transmit() is > enqueued and not dropped? > This would also be problem with the current SCTP stack. I think it'll return an error only if: * it queued the frame to the tail of the drbd; * it then tried to transmit a frame from the head of the drbd; * it failed to transmit the first frame in the drbd and it couldn't put it back into the queue for whatever reason. So I think it should be "ok enough" for both TCP and SCTP. Give it a go and let me know how it goes. It's an interesting architectural problem to completely solve. -adrian