From: Johannes Berg <johannes@sipsolutions.net>
To: Ben Greear <greearb@candelatech.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [RFC 1/2] mac80211: Add vif hash for multi-station RX performance.
Date: Wed, 24 Apr 2013 13:01:18 +0200 [thread overview]
Message-ID: <1366801278.11111.23.camel@jlt4.sipsolutions.net> (raw)
In-Reply-To: <517705E0.4070304@candelatech.com>
On Tue, 2013-04-23 at 15:06 -0700, Ben Greear wrote:
> > This idea suddenly looks a lot more interesting. The ieee80211_tx_status method needs
> > to find the remote station & sdata, but in the AP case, the station hash works best,
> > and in my many-sta-vif case, the VIF hash works best. I don't see any way to guess
> > which hash to use in this case.
Indeed, that'd be tricky.
> > But, if we first hashed to find sdata, and then had a vif hash in the sdata
> > object, the lookup should be fast for cases where the hash function works
> > well.
> >
> > I'll give this a try...
>
> Seems to mostly be working, but I've a few questions.
>
> First, if we are hashing sdata on sdata->vif.addr, then we must
> assume that everything in that hash has a unique MAC. I'm
> thinking that I would just never put monitor devices in
> the hash. Is there anything else that would cause problems
> with this?
Monitor interfaces won't have stations, so they're not needed anyway.
> Second, the sta_info_get_bss call is found fairly often. It
> talks about finding a station on sdata or associated vlan.
> Does this indicate that the there are VLAN sdata objects
> with duplicate MACs?
Yes. See net/mac80211/iface.c identical_mac_addr_allowed().
> I was hoping I could replace at least most calls to sta_info_get_bss
> with one that just searched the new sdata->sta_hash hash table...
I have no idea how my answer affects this :)
johannes
prev parent reply other threads:[~2013-04-24 11:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-03 16:48 [RFC 1/2] mac80211: Add vif hash for multi-station RX performance greearb
2013-04-03 16:48 ` [RFC 2/2] mac80211: Add vhash to debugfs greearb
2013-04-09 9:57 ` [RFC 1/2] mac80211: Add vif hash for multi-station RX performance Johannes Berg
2013-04-09 17:54 ` Ben Greear
2013-04-11 9:19 ` Johannes Berg
2013-04-11 16:11 ` Ben Greear
2013-04-23 19:42 ` Ben Greear
2013-04-23 22:06 ` Ben Greear
2013-04-24 11:01 ` Johannes Berg [this message]
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=1366801278.11111.23.camel@jlt4.sipsolutions.net \
--to=johannes@sipsolutions.net \
--cc=greearb@candelatech.com \
--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).