Linux wireless drivers development
 help / color / mirror / Atom feed
From: Sujith <m.sujith@gmail.com>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: "linville@tuxdriver.com" <linville@tuxdriver.com>,
	"linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	Luis Rodriguez <Luis.Rodriguez@Atheros.com>,
	"tomasw@gmail.com" <tomasw@gmail.com>
Subject: Re: [RFC] mac80211: Re-enable aggregation
Date: Mon, 27 Oct 2008 19:41:32 +0530	[thread overview]
Message-ID: <18693.52244.207787.514254@localhost.localdomain> (raw)
In-Reply-To: <1224773124.6002.32.camel@johannes.berg>

Johannes Berg wrote:
> If that was done in the RC at least (could easily be moved I suppose)
> and you cleaned up the RC, then surely nbd would play with porting
> minstrel and making it aware of such things, which probably makes for a
> better RC... And since you have to clean up the RC anyway :)
> 

Sure, just migrating to minstrel would be the better option. It would
probably need to be spruced up a bit to accommodate aggregation specific
data.

> > I was talking about this:
> > (txq->axq_depth < ATH_AGGR_MIN_QDEPTH) in ath_tx_sched_aggr()@xmit.c
> 
> But what does this invariant mean? ATH_AGGR_MIN_QDEPTH is 2.
> 

Well, this is not relevant when frames are aggregated and sent down
by mac80211. That check was present because frames were being created and
sent in the TX tasklet.

> > How would mac80211 buffer frames ? 
> 
> Well I suppose it would just put them on a list in the sta_info struct.
> 

A list for each TID, no ?

> > Would it wait for enough sub-frames
> > to fill an A-MPDU ?
> 
> It should, no? And if for some reason that doesn't happen fast enough it
> can send them out anyway, it'll just be a shorter A-MPDU, no?
> 
> >  When does it decide that buffered frames have to
> > be pushed down to the driver ?
> 
> When the A-MPDU is full, subject to the TX and RX constraints, or when
> too much time has passed maybe?
> 
> I really don't know. But I'd like to get to a model where we can
> implement other drivers without having to keep track of all this like
> ath9k does.

To summarize a bit about the state/control information that mac80211 needs
to maintain for an aggregation session:

* Block Ack state for each TID (sequence numbers, BA window etc.)
* Maintain a list of buffers for each <RA,TID> (setup, teardown etc.)
* Handle retransmission of unacked frames.

Forming an aggregate would involve the following.
( These might depend on HW caps as well as the recipient STA's caps)

* Aggregate length
* Delimiters
* Padding of sub-frames

TX control information will probably need to pass aggr. specific information
(number of delimiters etc.)

The API for aggregation can extend the ampdu_action() callback.
Adding a few more states can probably suffice initially.

We'll work on this and come up with an RFC.

Sujith

  parent reply	other threads:[~2008-10-27 14:13 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
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 [this message]
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=18693.52244.207787.514254@localhost.localdomain \
    --to=m.sujith@gmail.com \
    --cc=Luis.Rodriguez@Atheros.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=tomasw@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