Hi, On Mon, May 14, 2018 at 05:40:26PM +0200, Stefan Schmidt wrote: > Hello. > > > On 05/14/2018 04:29 PM, Alexander Aring wrote: > > Hi, > > > > On Fri, Apr 27, 2018 at 05:21:53PM -0400, Alexander Aring wrote: > >> This patch adds a new virtual driver mac802154_hwsim which is based on > >> the fakelb driver. > >> The fakelb driver will get deprecated and hopefully removed someday. > >> The main reason for doing this step is to rename the driver to > >> mac802154_hwsim to have a similar naming scheme as mac80211_hwsim, > >> which is more popular in the 802.11 wireless word and the idea is the > >> same behind this driver. > >> > >> The new features of this driver are to have knowledge about connected > >> edges, which can be changed during runtime. This offers a testing > >> environment for routing protocols e.g. RPL. > >> The default behaviour is still as fakelb: two radios connected to each > >> other. New added radios during runtime will not be connected to other > >> wpan_hwsim instances. > >> > >> The netlink api is not namespace aware on purpose, only the registered > >> wpan_phy's can be moved to namespaces. The physical layer according to > >> wiresless "air" communication can be handled across namespaces. > >> > >> Furthermore the edges can be weighted with the LQI value according IEEE > >> 802.15.4 which offers additional handling to mark bad or good connection > >> indicators to other connected virtual phys. > >> > >> Signed-off-by: Alexander Aring <aring@xxxxxxxxxxxx> > > somebody (don't cc him, I think he don't want to be public) reported > > about issues with hwsim privetly. I will check on it and enable more > > kernel debugging stuff in kernel hacking feature to see all > > locking/stack issues. > > The positive side is that it got some more testing and you got some problems reported. :-) > My test case is: while true;do wpan-hwsim edge del 0 1; sleep 1; wpan-hwsim edge add 0 1;sleep 1;done while I am doing: ping -f fe80::8e6:9f98:edab:f347%lowpan0 -s 4000 to the other node... -f is imporant. That should occur some race when there is one... I can't see anything here. I also enabled a lot of kernel hacking features to check stack corruption/rcu locking issues. Nothing, it runs over 30 minutes without problems... I will ignore that issue, I don't know maybe he added some code on his own... - Alex -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html