From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from s3.sipsolutions.net ([144.76.43.62]:51722 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727326AbeH3NIC (ORCPT ); Thu, 30 Aug 2018 09:08:02 -0400 Message-ID: <1535620003.5215.50.camel@sipsolutions.net> (sfid-20180830_110656_230126_37789A8E) Subject: Re: [PATCH v2] mac80211: do not aggregate frames if max_frags is set to one From: Johannes Berg To: Lorenzo Bianconi Cc: linux-wireless Date: Thu, 30 Aug 2018 11:06:43 +0200 In-Reply-To: <1535619812.5215.49.camel@sipsolutions.net> (sfid-20180830_110347_501191_25C9B39D) 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> <20180830090045.GC9867@localhost.localdomain> (sfid-20180830_110049_016172_37F22F11) <1535619812.5215.49.camel@sipsolutions.net> (sfid-20180830_110347_501191_25C9B39D) Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org List-ID: On Thu, 2018-08-30 at 11:03 +0200, Johannes Berg wrote: > On Thu, 2018-08-30 at 11:00 +0200, Lorenzo Bianconi wrote: > > > 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 > > The same is true for nfrags, btw, no? No, it's not, just misread the code. johannes