diff options
author | Johannes Berg | 2009-07-14 00:33:35 +0200 |
---|---|---|
committer | John W. Linville | 2009-07-27 21:24:07 +0200 |
commit | 463d018323851a608eef52a9427b0585005c647f (patch) | |
tree | b5ad2ee6115e6b780c264022cbc20b36d22fe80c /drivers/net/wireless/rt2x00/rt2x00queue.h | |
parent | mac80211: cooperate more with network namespaces (diff) | |
download | kernel-qcow2-linux-463d018323851a608eef52a9427b0585005c647f.tar.gz kernel-qcow2-linux-463d018323851a608eef52a9427b0585005c647f.tar.xz kernel-qcow2-linux-463d018323851a608eef52a9427b0585005c647f.zip |
cfg80211: make aware of net namespaces
In order to make cfg80211/nl80211 aware of network namespaces,
we have to do the following things:
* del_virtual_intf method takes an interface index rather
than a netdev pointer - simply change this
* nl80211 uses init_net a lot, it changes to use the sender's
network namespace
* scan requests use the interface index, hold a netdev pointer
and reference instead
* we want a wiphy and its associated virtual interfaces to be
in one netns together, so
- we need to be able to change ns for a given interface, so
export dev_change_net_namespace()
- for each virtual interface set the NETIF_F_NETNS_LOCAL
flag, and clear that flag only when the wiphy changes ns,
to disallow breaking this invariant
* when a network namespace goes away, we need to reparent the
wiphy to init_net
* cfg80211 users that support creating virtual interfaces must
create them in the wiphy's namespace, currently this affects
only mac80211
The end result is that you can now switch an entire wiphy into
a different network namespace with the new command
iw phy#<idx> set netns <pid>
and all virtual interfaces will follow (or the operation fails).
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00queue.h')
0 files changed, 0 insertions, 0 deletions