linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>
Cc: John Linville <linville@tuxdriver.com>, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/8] mac80211: rewrite fragmentation
Date: Thu, 26 Mar 2009 09:15:49 +0100	[thread overview]
Message-ID: <1238055349.4331.6.camel@johannes.local> (raw)
In-Reply-To: <43e72e890903251821i7b582601r877662790ceb747c@mail.gmail.com> (sfid-20090326_022139_298504_9302A810)

[-- Attachment #1: Type: text/plain, Size: 1922 bytes --]

On Wed, 2009-03-25 at 18:21 -0700, Luis R. Rodriguez wrote:

> > -static int __ieee80211_tx(struct ieee80211_local *local, struct sk_buff *skb,
> > +static int __ieee80211_tx(struct ieee80211_local *local,
> >                          struct ieee80211_tx_data *tx)
> >  {
> > +       struct sk_buff *skb = tx->skb, *next;
> >        struct ieee80211_tx_info *info;
> > -       int ret, i;
> > +       int ret;
> > +       bool fragm = false;
> >
> > -       if (skb) {
> > +       local->mdev->trans_start = jiffies;
> > +
> > +       while (skb) {
> >                if (ieee80211_queue_stopped(&local->hw,
> >                                            skb_get_queue_mapping(skb)))
> >                        return IEEE80211_TX_PENDING;
> >
> > -               ret = local->ops->tx(local_to_hw(local), skb);
> > -               if (ret)
> > -                       return IEEE80211_TX_AGAIN;
> > -               local->mdev->trans_start = jiffies;
> > -               ieee80211_led_tx(local, 1);
> > -       }

> I see only one possible regression with this patch and that is that it
> seems you forgot to update the mdev->trans_start in the new loop on
> each fragment.

Well, that was actually intentional. Since none of the code here can
block the time between the various assignments of trans_start would be
_very_ small, and as such the multiple assignments can't really be
necessary.

> As far as I can tell this would only introduce a regression with if
> someone is using a netdev watchdog on the mdev, if we don't care about
> that and I'm not missing any other case where this could be affected
> we might as well remove that first update as at least for mac80211 its
> completely untouched.

netdev watchdog is always running for all netdevs :)

> Other than that:
> 
> Reviewed-by: Luis R. Rodriguez <lrodriguez@atheros.com>

Thanks for looking!

johannes

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  parent reply	other threads:[~2009-03-26  8:16 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-23 16:28 [PATCH 0/8] mac80211 aggregation improvements Johannes Berg
2009-03-23 16:28 ` [PATCH 1/8] mac80211: rewrite fragmentation Johannes Berg
2009-03-26  1:21   ` Luis R. Rodriguez
2009-03-26  1:26     ` Julian Calaby
2009-03-26  1:34       ` Luis R. Rodriguez
2009-03-26  1:34     ` Luis R. Rodriguez
2009-03-26  8:15     ` Johannes Berg [this message]
2009-03-23 16:28 ` [PATCH 2/8] mac80211: fix A-MPDU queue assignment Johannes Berg
2009-03-26  1:41   ` Luis R. Rodriguez
2009-03-23 16:28 ` [PATCH 3/8] mac80211: rework the pending packets code Johannes Berg
2009-03-27 22:22   ` Luis R. Rodriguez
2009-03-27 22:36     ` Johannes Berg
2009-03-23 16:28 ` [PATCH 4/8] mac80211: clean up __ieee80211_tx args Johannes Berg
2009-03-27 22:26   ` Luis R. Rodriguez
2009-03-23 16:28 ` [PATCH 5/8] mac80211: unify and fix TX aggregation start Johannes Berg
2009-03-28  2:27   ` Luis R. Rodriguez
2009-03-28  3:01     ` Luis R. Rodriguez
2009-03-28 17:28       ` Johannes Berg
2009-03-23 16:28 ` [PATCH 6/8] mac80211: add skb length sanity checking Johannes Berg
2009-03-28  2:40   ` Luis R. Rodriguez
2009-03-28  3:00     ` Luis R. Rodriguez
2009-03-28 17:29       ` Johannes Berg
2009-03-23 16:28 ` [PATCH 7/8] mac80211: fix aggregation to not require queue stop Johannes Berg
2009-03-28  4:55   ` Luis R. Rodriguez
2009-03-28 17:41     ` Johannes Berg
2009-03-28 19:18       ` Luis R. Rodriguez
2009-03-28 19:52         ` Johannes Berg
2009-03-28 20:26           ` Luis R. Rodriguez
2009-03-28 20:42             ` Johannes Berg
2009-03-28 21:06               ` Luis R. Rodriguez
2009-03-28 21:17                 ` Johannes Berg
2009-03-28 21:40                   ` Luis R. Rodriguez
2009-03-23 16:28 ` [PATCH 8/8] mac80211/iwlwifi: move virtual A-MDPU queue bookkeeping to iwlwifi Johannes Berg
2009-03-28  5:04   ` Luis R. Rodriguez
2009-03-24  8:28 ` [PATCH 0/8] mac80211 aggregation improvements Johannes Berg
2009-03-24 16:13   ` Luis R. Rodriguez
2009-03-24 19:48     ` John W. Linville
2009-03-24 20:24       ` 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=1238055349.4331.6.camel@johannes.local \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=mcgrof@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;
as well as URLs for NNTP newsgroup(s).