Subject: Re: Fw: [Bug 66691] New: iproute2: macvlan: Wrong root device shown if in different netns

From: Pavel Emelyanov <[email-masked]>
Date: Mon, 16 Dec 2013 14:41:57 +0400

On 12/16/2013 02:38 PM, Helmut Schaa wrote:
> On Fri, Dec 6, 2013 at 9:05 PM, Stephen Hemminger
> <[email-masked]> wrote:
>> This isn't a iproute2 bug, it is only reporting what the kernel tells it
> 
> But iproute2 assumes that the ifindex is unique within all net
> namespaces. This isn't true anymore
> after commit aa79e66eee5d525e2fcbd2a5fcb87ae3dd4aa9e9 "net: Make
> ifindex generation
> per-net namespace".
> 
> However, in order to do the right thing iproute2 would have to know
> the ifindex of the
> link device _and_ its associated netns.
> 
> Not sure how to deal with that ...

Helmut, what would you expect to see from "ip netns exec myns ip link"
in case there were no device with ifindex 2 in the myns netns?

> Helmut
> .