Re: [B.A.T.M.A.N.] [PATCHv2 3/4] batman-adv: Handle parent interfaces in a different netns

2016-03-07 Thread Sven Eckelmann
On Monday 07 March 2016 15:31:30 Andrew Lunn wrote: > On Fri, Mar 04, 2016 at 01:35:01PM +0100, Sven Eckelmann wrote: > > On Tuesday 01 March 2016 22:19:07 Andrew Lunn wrote: > > > batman-adv tries to prevent the user from placing a batX soft > > > interface into another batman mesh as a hard

Re: [B.A.T.M.A.N.] [PATCHv2 3/4] batman-adv: Handle parent interfaces in a different netns

2016-03-07 Thread Andrew Lunn
On Fri, Mar 04, 2016 at 01:35:01PM +0100, Sven Eckelmann wrote: > On Tuesday 01 March 2016 22:19:07 Andrew Lunn wrote: > > batman-adv tries to prevent the user from placing a batX soft > > interface into another batman mesh as a hard interface. It does this > > by walking up the devices list of

Re: [B.A.T.M.A.N.] [PATCHv2 4/4] batman-adv: debugfs: Add netns support

2016-03-07 Thread Matthias Schiffer
On 03/01/2016 10:19 PM, Andrew Lunn wrote: > Unlike sysfs, debugfs is not netns aware. So batman has to take care > to avoid namespace clashes. > > Each namespace is given a directory within debugfs/batman-adv/netns, > using the namespaces inum as the directory name. > > Files for namespaces

Re: [B.A.T.M.A.N.] [PATCHv2 3/4] batman-adv: Handle parent interfaces in a different netns

2016-03-07 Thread Andrew Lunn
On Mon, Mar 07, 2016 at 05:21:48AM +0100, Linus Lüssing wrote: > Hi Andrew, > > Thanks for looking into this! > > It seems some compat code might be missing, compiling against a > 3.19 kernel fails for me (4.0 to 4.4 compiles fine): Hi Linus I didn't look at compat code at all. I mostly work

Re: [B.A.T.M.A.N.] [PATCHv2 3/4] batman-adv: Handle parent interfaces in a different netns

2016-03-07 Thread Sven Eckelmann
On Tuesday 01 March 2016 22:19:07 Andrew Lunn wrote: > batman-adv tries to prevent the user from placing a batX soft > interface into another batman mesh as a hard interface. It does this > by walking up the devices list of parents and ensures they are all > none batX interfaces. iflink can point