Linux wireless drivers development
 help / color / mirror / Atom feed
From: "Tomas Winkler" <tomasw@gmail.com>
To: Sujith <m.sujith@gmail.com>, "Johannes Berg" <johannes@sipsolutions.net>
Cc: Sujith <Sujith.Manoharan@atheros.com>,
	"linville@tuxdriver.com" <linville@tuxdriver.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	"Luis Rodriguez" <Luis.Rodriguez@atheros.com>
Subject: Re: [RFC] mac80211: Re-enable aggregation
Date: Mon, 20 Oct 2008 23:46:34 +0200	[thread overview]
Message-ID: <1ba2fa240810201446x429e0b5aud3f20e2fadb19f1@mail.gmail.com> (raw)
In-Reply-To: <18684.51206.771543.514682@localhost.localdomain>

On Mon, Oct 20, 2008 at 8:03 PM, Sujith <m.sujith@gmail.com> wrote:
> Johannes Berg wrote:
>> > Probably because 11n aggregation have more rigorous timing requirements
>> > between frames.
>>
>> What kind? I can only find the ampdu spacing/length exponent stuff.
>>
>
> I am not sure, either.
>
>> > > I guess there's no clear answer here. How about "whichever you want"?
>> > > Though I think I prefer pushing them down as that makes the model easier
>> > > to understand. It probably also makes the Intel case easier to
>> > > implement.
>> >
>> > A way to pull down buffered frames for each TID (like ieee80211_get_buffered_bc() )
>> > would be really useful for ath9k.
>>
>> I'm not sure, that seems like a useful thing initially, but leaves a lot
>> of stuff for the driver. We should probably think about moving more
>> things *up* into mac80211 rather than giving the driver more access to
>> low-level details. This would also allow us possibly even send A-MPDU
>> mcast when acting as an HT AP, something the driver cannot easily do.
>>
>> Can you explain the way it currently works in ath9k?
>>
>
> Alright, it goes something like this:
>
> * mac80211 sends down a frame
>   * Initiate an aggregation session for the <RA,TID> if one isn't already in progress.
>   * Pause the TID, i.e, add further frames to the TID's queue.
>      * If ADDBA exchange is successful, resume TID.
>         * Form aggregates from the TID's buffer list, send them out.
>           ( Take care to maintain minimum HW queue depth for aggregation )
>      * If ADDBA exchange fails, flush TID.
>         * Send TID's pending frames as normal frames (non-ampdu)
>
> Now, assuming we have a successful aggregation session going,
> frame handling looks like this:
>
> * mac80211 sends down a frame
>   * Append to TID's buffer list.
>
> On TX Completion,
>
> * Process all TX queues
>   * Process all complete descriptors.
>      * Complete all sub-frames of an aggregate that were ACKed (send status to mac80211).
>      * Re-queue sub-frames that were not ACKed back to the TID's pending queue.
>          * Schedule this TID for processing.
>   * Run through all scheduled TIDs
>      * Form aggregates from the pending buffers and send them out.
>        ( Again, maintain minimum HW depth )
>
> So, aggregation is currently done on a need-to basis, and changing this
> to a flow where mac80211 sends down frames with A-MPDU related control information
> would mean a complete rewrite of ath9k's TX path. :-)
>

We may fit into this schema, just some of the book keeping tasks here
we have off loaded to the hw.

>> Also, I'm trying to understand the relation between a block-ack
>> agreement and A-MDPU, I understand that without a block-ack-agreement
>> aggregation isn't very useful, but could we not, for example, implement
>> (regular) delayed block-ack with much the same infrastructure?
>>
>
> Immediate Block-Ack is mandatory for 11n, delayed BA is optional.
> ath9k currently maintains the BA window state internally too.
> Another candidate that can be moved to mac80211, IMO.
>

TX or RX side?

>> What I could also imagine is that mac80211 simply does pretty much
>> everything and hands a number of skbs to the driver at once with some
>> additional information about how to aggregate them, what sort of spacing
>> to use, etc. It should be able to calculate all the required stuff since
>> it knows from the rate control algorithm what's happening there.

What you need is to compute how many frames can be transmitted within
TXOP i think we can provide the calculation
depending on the current state. Just with the retransmission down
scaling need to be taken into account.

 That
>> might leave Intel out a bit, but I'm starting to think that we want to
>> special-case them a bit anyway.

Let's see first mvel and bcom implementation :)

> Well, I really don't know how this would affect performance, but
> I think this _might_ be a better model.
>
> Sujith
>

Tomas

  reply	other threads:[~2008-10-20 21:46 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-20  8:22 [RFC] mac80211: Re-enable aggregation Sujith
2008-10-20  8:31 ` Johannes Berg
2008-10-20  8:35   ` Luis R. Rodriguez
2008-10-20  8:45     ` Johannes Berg
2008-10-20  8:47       ` Sujith
2008-10-20  8:55         ` Luis R. Rodriguez
2008-10-20  8:57           ` Johannes Berg
2008-10-20  9:01             ` Luis R. Rodriguez
2008-10-20  9:04               ` Johannes Berg
2008-10-20  9:05                 ` Luis R. Rodriguez
2008-10-20  9:11                 ` Sujith
2008-10-20  8:57       ` Luis R. Rodriguez
2008-10-20  8:58   ` Sujith
2008-10-20  9:12     ` Johannes Berg
2008-10-20  9:31       ` Sujith
2008-10-20  9:38         ` Johannes Berg
2008-10-20 10:35           ` Sujith
2008-10-20 12:22             ` Johannes Berg
2008-10-20 18:03               ` Sujith
2008-10-20 21:46                 ` Tomas Winkler [this message]
2008-10-21  6:46                   ` Johannes Berg
2008-10-21  7:18                   ` Sujith
2008-10-22 10:03                   ` Johannes Berg
2008-10-22 11:59                     ` Tomas Winkler
2008-10-22 17:22                       ` Johannes Berg
2008-10-23  8:57                         ` Sujith
2008-10-23 14:46                           ` Johannes Berg
2008-10-27 14:25                             ` Sujith
2008-10-27 15:04                               ` Johannes Berg
2008-10-27 15:56                                 ` Tomas Winkler
2008-10-27 16:04                                   ` Johannes Berg
2008-10-28 14:24                                     ` Tomas Winkler
2008-10-22 10:00                 ` Johannes Berg
2008-10-22 11:41                   ` Tomas Winkler
2008-10-22 17:24                     ` Johannes Berg
2008-10-23  9:31                   ` Sujith
2008-10-23 14:45                     ` Johannes Berg
2008-10-23 17:23                       ` Luis R. Rodriguez
2008-10-23 18:31                         ` Tomas Winkler
2008-10-23 20:18                           ` Luis R. Rodriguez
2008-10-23 21:17                             ` Tomas Winkler
2008-10-31  1:26                               ` Luis R. Rodriguez
2008-10-27 14:11                       ` Sujith
2008-10-27 15:07                         ` Johannes Berg
2008-10-20  9:14     ` Luis R. Rodriguez
2008-10-20  9:24       ` Johannes Berg
2008-10-20 10:07         ` Sujith
2008-10-20 10:15           ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1ba2fa240810201446x429e0b5aud3f20e2fadb19f1@mail.gmail.com \
    --to=tomasw@gmail.com \
    --cc=Luis.Rodriguez@atheros.com \
    --cc=Sujith.Manoharan@atheros.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=m.sujith@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox