Generic way to change net namespace for wireless device

From: Vadim Kochan <hidden>
Date: 2014-09-10 18:01:33

Hi All,

I see that setting of network namespace differs for wireless and for
other devices. To change netns for wireless device it is needed to use
nl80211 API. Seems wireless device must have some special way to
change netns, but what if to:

     - add new netdev_ops->ndo_set_netns callback
     - implement it in net/mac80211/iface.c
     - delegate callback from net/mac80211 to net/wireless/core.c ->
          cfg80211_switch_netns func.
     - in net/core/rtnetlink.c ->do_setlink  func check & call
          dev->netdev_ops->ndo_set_netns or call
          dev_change_net_namespace

Then it will be possible to change netns for wireless device via
RTM_SETLINK.

Regards,
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help