From: Daniel Drake <dsd@gentoo.org>
To: Michael Wu <flamingice@sourmilk.net>
Cc: John Linville <linville@tuxdriver.com>,
netdev@vger.kernel.org, Ulrich Kunitz <kune@deine-taler.de>
Subject: Re: d80211-drivers pull request (week-48)
Date: Mon, 11 Dec 2006 22:51:16 -0500 [thread overview]
Message-ID: <457E2734.6010700@gentoo.org> (raw)
In-Reply-To: <200612112120.58157.flamingice@sourmilk.net>
Michael Wu wrote:
> I don't think this race is such a big deal. It will only happen when someone
> is really trying to mess with the link, and would cause the rate control to
> jump to the highest speed. However, if someone is really trying to mess with
> the link this way, the stability of the link is in trouble anyways. Wait for
> stations to send frames, and send an ack for every unicast frame - everyone
> will get confused. To actually mess with this code, the attacker would have
> to transmit acks nearly continuously as it can't tell exactly when is a good
> time to screw things up, and the driver recovers as soon as the queue is
> emptied. Someone transmitting all the time is a problem for all wireless
> cards. :)
It's ugly, in my mind not necessary, and it will kill performance. We
haven't had to make such compromises in a long time. We got a large TX
speed boost when the driver was modified to queue up multiple transmit
URBs (i.e. don't wait for URB completion of the first) at the same time
early during driver development. And even with that we're still a fair
distance from the performance of the vendor driver.
While the stack isn't so well suited for this device I'd much prefer to
see a more simplistic workaround. For example, assume all packets were
successful but then report a failure when an interrupt comes in. Or, if
the stack won't accept out-of-the-blue notifications like that, then
maintain a counter which is incremented when a failure is reported, and
when transmitting the next few frames report them as failed and
decrement the counter (while counter > 0). Maybe disable rate control
until we can come up with a nicer solution.
Daniel
next prev parent reply other threads:[~2006-12-12 3:51 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-11 6:01 d80211-drivers pull request (week-48) Michael Wu
2006-12-12 1:07 ` Daniel Drake
2006-12-12 2:20 ` Michael Wu
2006-12-12 3:51 ` Daniel Drake [this message]
2006-12-12 4:28 ` Michael Wu
2006-12-12 23:39 ` Ulrich Kunitz
2006-12-13 2:35 ` Michael Wu
2006-12-12 9:35 ` Michael Buesch
2006-12-15 5:54 ` Simon Barber
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=457E2734.6010700@gentoo.org \
--to=dsd@gentoo.org \
--cc=flamingice@sourmilk.net \
--cc=kune@deine-taler.de \
--cc=linville@tuxdriver.com \
--cc=netdev@vger.kernel.org \
/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).