From owner-freebsd-net@freebsd.org Thu Sep 3 15:00:46 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7293B99E094 for ; Thu, 3 Sep 2015 15:00:46 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 55FEE991 for ; Thu, 3 Sep 2015 15:00:46 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: by mailman.ysv.freebsd.org (Postfix) id 52F5099E091; Thu, 3 Sep 2015 15:00:46 +0000 (UTC) Delivered-To: net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5288399E090 for ; Thu, 3 Sep 2015 15:00:46 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (glebius.int.ru [81.19.69.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "cell.glebius.int.ru", Issuer "cell.glebius.int.ru" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CDACB98D; Thu, 3 Sep 2015 15:00:44 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from cell.glebius.int.ru (localhost [127.0.0.1]) by cell.glebius.int.ru (8.15.2/8.15.2) with ESMTPS id t83F0f1H016240 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 3 Sep 2015 18:00:41 +0300 (MSK) (envelope-from glebius@FreeBSD.org) Received: (from glebius@localhost) by cell.glebius.int.ru (8.15.2/8.15.2/Submit) id t83F0fmm016239; Thu, 3 Sep 2015 18:00:41 +0300 (MSK) (envelope-from glebius@FreeBSD.org) X-Authentication-Warning: cell.glebius.int.ru: glebius set sender to glebius@FreeBSD.org using -f Date: Thu, 3 Sep 2015 18:00:41 +0300 From: Gleb Smirnoff To: Andriy Voskoboinyk , Adrian Chadd Cc: "net@freebsd.org" Subject: Re: mbufq-less iwn(4) Message-ID: <20150903150041.GR1023@glebius.int.ru> References: <20150901112043.GB1023@glebius.int.ru> <20150902060324.GF1023@glebius.int.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 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, 03 Sep 2015 15:00:46 -0000 On Thu, Sep 03, 2015 at 05:11:27PM +0300, Andriy Voskoboinyk wrote: A> > A> Other thing - ic_transmit() also needs to handle fragments, like I do A> > A> with ath. Ie, handing it a list of packets is actually a list of A> > A> 802.11 fragments, rather than separate MPDUs. A> > A> A> > A> Another thing - we're modifying the mbufs (adding 802.11 data to it) A> > A> before we pass them to the driver, and if the driver fails to A> > A> transmit, we can't just pass it back up the net80211 stack to the tcp A> > A> or udp layer.. A> > A> > Sure, stack probably would need to strip the data. Anyway, that's A> > a future task. A> > A> A> What about https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193569 ? I'd leave that to you, guys :) I don't want to go knee deep into the 802.11, I'm just working on a "tiny" project of opaque struct ifnet :) -- Totus tuus, Glebius.