Return-path: Received: from wf-out-1314.google.com ([209.85.200.172]:6676 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755113AbZC1Vkx (ORCPT ); Sat, 28 Mar 2009 17:40:53 -0400 Received: by wf-out-1314.google.com with SMTP id 29so1939542wff.4 for ; Sat, 28 Mar 2009 14:40:52 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1238275068.4217.31.camel@johannes.local> References: <20090323162834.154525349@sipsolutions.net> <20090323163053.344441542@sipsolutions.net> <20090328045529.GF5543@bombadil.infradead.org> <1238262118.4217.13.camel@johannes.local> <43e72e890903281218s6b4eeb9eu4a97aa3e87c5a3a6@mail.gmail.com> <1238269957.4217.24.camel@johannes.local> <43e72e890903281326j1bba2456j3b82bf3831b614f6@mail.gmail.com> <1238272957.4217.28.camel@johannes.local> <43e72e890903281406w528719b1vda8128255f1ac707@mail.gmail.com> <1238275068.4217.31.camel@johannes.local> Date: Sat, 28 Mar 2009 14:40:37 -0700 Message-ID: <43e72e890903281440i31dfa9b0q94164411d22ac995@mail.gmail.com> (sfid-20090328_224100_302185_7AC34E99) Subject: Re: [PATCH 7/8] mac80211: fix aggregation to not require queue stop From: "Luis R. Rodriguez" To: Johannes Berg Cc: "Luis R. Rodriguez" , John Linville , linux-wireless@vger.kernel.org, Hauke Mehrtens Content-Type: text/plain; charset=UTF-8 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Sat, Mar 28, 2009 at 2:17 PM, Johannes Berg wrote: > On Sat, 2009-03-28 at 14:06 -0700, Luis R. Rodriguez wrote: > >> My point was that if you have the tasklet handled by a separate CPU >> the DRV flag would most likely be set by the time the addba response >> comes back. On a UP box though you have no option but to wait for wait >> for it to be done after we send off the addba request so then it is a >> race between the scheduler to schedule the tasklet and the remote >> station's speed + the IRQ processing of the received response. > > Ah, I see what you mean. But this goes off the same tasklet :) so ath9k > doesn't have a problem in any case. :D >> If we would somehow be able to ensure pending BHs complete before we >> process the addba response this wouldn't be needed in both places. > > No, we can't ensure that -- the driver might very well take longer and > we don't have a way to only process the received frame later. Well as you pointed out we already do since its on the same tasklet -- the delay will happen within the ampdu start action in the driver, not the irqsafe callback itself. >> Anyway I'm also stating that its likely that the ampdu start action is >> slower with iwlagn as interaction with the firmware is required so I >> would suspect one can see this behavior more likely on UP iwlagn >> boxen. >> >> Where did you see it? > > I didn't actually see it :) But iwlagn can possibly flush the queue > before calling back to the cb. Heh, flush what queue? A virtual ampdu queue thing? Or something else, I'm trying to understand exactly where this would happen, I don't think I get the picture yet. Luis