All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Juuso Oikarinen <juuso.oikarinen@nokia.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>
Subject: Re: [RFC PATCH] mac80211: Add support for hardware ARP query filtering
Date: Tue, 25 May 2010 13:25:43 +0200	[thread overview]
Message-ID: <1274786743.3635.33.camel@jlt3.sipsolutions.net> (raw)
In-Reply-To: <1274779914.5277.216.camel@wimaxnb.nmp.nokia.com>

On Tue, 2010-05-25 at 12:31 +0300, Juuso Oikarinen wrote:

> > BTW, how will drivers deal with getting this while unassociated? If, for
> > example, I set an address before associating, you'll get it while
> > unassociated and not again when associated. Another thing to document --
> > driver needs to handle that, DHCP is not everything :)
> 
> This is actually a good point. The wl1271 driver configures the ARP
> filter immediately - associated or not - once the chipset is booted up
> (as above.) This is indeed not very generic.
> 
> I will move the set_arp_filter -thingy from _open() to when the we are
> associated. That way we get the initial IP address (if there happen to
> be any) from start when the address is actually needed. 

But then you would still get a callback way before the hardware is even
started if you set the address before ifup ... mac80211 should probably
catch that. Or does the networking stack already defer it then?

Another thing that came to mind -- how about locking? Will the callback
have to be atomic? Can you really access idev->ifa_list without any
locking at all?

> > This is obviously broken when you have multiple virtual interfaces, so
> > you either need to build a common list of IP addresses, or punt the
> > problem to the driver and give the callback an ieee80211_vif argument
> > and clearly document that the driver will have to keep track of it for
> > each interface.
> 
> Good point. I will "punt" (never heard this expression before!) 

Don't take my word for it ... I heard that once but can't find reference
to it being a correct use of the word ;)

johannes


  reply	other threads:[~2010-05-25 11:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-25  7:48 [RFC PATCH] mac80211: Add support for hardware ARP query filtering Juuso Oikarinen
2010-05-25  9:13 ` Johannes Berg
2010-05-25  9:31   ` Juuso Oikarinen
2010-05-25 11:25     ` Johannes Berg [this message]
2010-05-25 11:34       ` Juuso Oikarinen
2010-05-26 11:14   ` Juuso Oikarinen
2010-05-26 11:19     ` 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=1274786743.3635.33.camel@jlt3.sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=juuso.oikarinen@nokia.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.