From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wr1-f68.google.com ([209.85.221.68]:32823 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727170AbeH3NB4 (ORCPT ); Thu, 30 Aug 2018 09:01:56 -0400 Received: by mail-wr1-f68.google.com with SMTP id v90-v6so7325283wrc.0 for ; Thu, 30 Aug 2018 02:00:48 -0700 (PDT) Date: Thu, 30 Aug 2018 11:00:45 +0200 From: Lorenzo Bianconi To: Johannes Berg Cc: linux-wireless Subject: Re: [PATCH v2] mac80211: do not aggregate frames if max_frags is set to one Message-ID: <20180830090045.GC9867@localhost.localdomain> (sfid-20180830_110052_019880_A637F1C6) References: <1535569548.5215.33.camel@sipsolutions.net> <1535570007.5215.34.camel@sipsolutions.net> <1535616192.5215.37.camel@sipsolutions.net> <20180830083115.GA9867@localhost.localdomain> <1535618382.5215.44.camel@sipsolutions.net> <20180830085054.GB9867@localhost.localdomain> <1535619189.5215.47.camel@sipsolutions.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1535619189.5215.47.camel@sipsolutions.net> Sender: linux-wireless-owner@vger.kernel.org List-ID: > On Thu, 2018-08-30 at 10:50 +0200, Lorenzo Bianconi wrote: > > > > ack, I agree. Do you want I send a patch to fix it? > > I have it written now, I'll just commit & send it out. Sound good, thx :) > > > > Hmm, not sure I follow? "head" is the A-MSDU, containing the A-MSDU > > > header and the first subframe in skb->data (and/or frags), with the > > > subframes 2..N in the fraglist. > > > > > > So I think this is right? > > > > yep, correct. But when we are analyzing the second subframe what is the correct value for 'n'? > > 1 or 2? At the moment I guess it is set to 1 if frag_tail is NULL for head. > > Ah. I guess you're right. So basically setting max_subframes to 1 > doesn't avoid A-MSDUs completely, since n will still be 1 when we get > here ... good point, care to send a patch? > ack, I will send a patch for it Regards, Lorenzo > johannes