[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAMw6YJJuPK5Ngh8vTL9_c1XUyk6tkcVpFtWyoeODhLUpJxkqLg@mail.gmail.com>
Date: Wed, 10 Sep 2014 21:01:32 +0300
From: Vadim Kochan <vadim4j@...il.com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Generic way to change net namespace for wireless device
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,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists