From: Jouni Malinen <j@w1.fi>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-wireless@vger.kernel.org
Subject: Re: mac80211_hwsim - simulator of 802.11 radios for mac80211
Date: Tue, 10 Jun 2008 18:02:27 +0300 [thread overview]
Message-ID: <20080610150227.GA4913@jm.kir.nu> (raw)
In-Reply-To: <1213103378.3668.10.camel@johannes.berg>
On Tue, Jun 10, 2008 at 03:09:38PM +0200, Johannes Berg wrote:
> I don't think there are large pending changes, but there were large
> changes in the way channels are registered, tx control works etc.
OK.
> You should probably use the _irqsafe versions of rx and txstatus too.
Hmm.. That was interesting.. Changing txstatus to use _irqsafe is was
fine, but changing ieee80211_rx to ieee80211_rx_irqsafe triggers
something bad.. Loadavg jumps sky high the moment I kill hostapd and
ksoftirqd/0 and rmmod (which I ran after killing hostapd) are taking all
CPU.. I can hardly type a command at that point. Looks like something
goes horribly wrong with the extra queuing with ieee80211_rx_irqsafe.
Maybe sending something to a netdev that is down ends up in a busy loop
with a frame or something. In other words, I did not change to use
_irqsafe yet, but will do once I have more time to figure out what on
earth is going on here.
> > Yes, I've been thinking of something similar, too. I'll add a netdev
> > that gets all frames with radiotap header.
>
> Maybe it could support injection on that too, so you can test against a
> userspace agent.
Yes, I added the global radiotap monitor to hwsim (ifname=hwsim#) and
left the hard_xmit function empty with a TODO comment.. The netdev from
outside mac80211 is quite useful since it can be set up before any of
the mac80211 netdevs and it is possible to capture all frames from the
beginning.. If needed, we could add some more flags to the radiotap
header for indicating what was done with the frame, but that is
something that can easily be added later.
> The design I had come up with a long time ago allowed userspace to
> control each radio by having each _radio_ have a raw netdev like this
> and not doing forwarding in the kernel but relying on some userspace
> tool, but I guess that much more complicated.
That might be useful for some of the tests. I was interested in adding
some kind of interface to make it easy to design test cases from user
space, but the current code was so simple that I did not want to make it
any more complex in the first version. Anyway, it might make sense to
provide option mechanism to allow more user space control since I'm also
interested in things like testing rate control with a programmable
signal strength/channel quality and I do not really want to see the
controller for that simulation in the kernel..
--
Jouni Malinen PGP id EFC895FA
next prev parent reply other threads:[~2008-06-10 15:03 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 10:50 mac80211_hwsim - simulator of 802.11 radios for mac80211 Jouni Malinen
2008-06-10 11:16 ` Johannes Berg
2008-06-10 12:30 ` John W. Linville
2008-06-10 13:11 ` Johannes Berg
2008-06-10 15:24 ` John W. Linville
2008-06-10 18:37 ` [PATCH RFC] mac80211_hwsim Jouni Malinen
2008-06-10 19:00 ` Johannes Berg
2008-06-11 6:57 ` Jouni Malinen
2008-06-11 12:07 ` Johannes Berg
2008-06-11 12:54 ` Tomas Winkler
2008-06-10 12:47 ` mac80211_hwsim - simulator of 802.11 radios for mac80211 Jouni Malinen
2008-06-10 13:09 ` Johannes Berg
2008-06-10 13:12 ` Johannes Berg
2008-06-10 15:02 ` Jouni Malinen [this message]
2008-06-10 15:11 ` Johannes Berg
2008-06-10 16:31 ` Jouni Malinen
2008-06-10 14:22 ` Dan Williams
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=20080610150227.GA4913@jm.kir.nu \
--to=j@w1.fi \
--cc=johannes@sipsolutions.net \
--cc=linux-wireless@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).