Re: [PATCH] net: allow interface to be set into vrf if a vif in same vrf

2018-03-01 Thread David Ahern
[ Fixed Mike's email ] On 3/1/18 11:28 AM, David Miller wrote: > From: Mike Manning > Date: Mon, 26 Feb 2018 16:48:56 + > >> Setting an interface into a vrf fails with 'RTNETLINK answers: File >> exists' if one of its vifs is already in the same vrf. As the vrf is an >> upper device of the v

Re: [PATCH] net: allow interface to be set into vrf if a vif in same vrf

2018-03-01 Thread David Miller
From: Mike Manning Date: Mon, 26 Feb 2018 16:48:56 + > Setting an interface into a vrf fails with 'RTNETLINK answers: File > exists' if one of its vifs is already in the same vrf. As the vrf is an > upper device of the vif, it is also showing up as an upper device of > the interface itself. T

Re: [PATCH] net: allow interface to be set into vrf if a vif in same vrf

2018-02-26 Thread David Ahern
On 2/26/18 11:05 AM, Mike Manning wrote: > On 2/26/18 9:48 AM, Mike Manning wrote: > >> Setting an interface into a vrf fails with 'RTNETLINK answers: File >> exists' if one of its vifs is already in the same vrf. As the vrf is an >> upper device of the vif, it is also showing up as an upper devic

[PATCH] net: allow interface to be set into vrf if a vif in same vrf

2018-02-26 Thread Mike Manning
Setting an interface into a vrf fails with 'RTNETLINK answers: File exists' if one of its vifs is already in the same vrf. As the vrf is an upper device of the vif, it is also showing up as an upper device of the interface itself. The solution is to restrict this check to devices other than master.

Re: [PATCH] net: allow interface to be set into vrf if a vif in same vrf

2018-02-26 Thread David Ahern
On 2/26/18 9:48 AM, Mike Manning wrote: > Setting an interface into a vrf fails with 'RTNETLINK answers: File > exists' if one of its vifs is already in the same vrf. As the vrf is an > upper device of the vif, it is also showing up as an upper device of > the interface itself. The solution is to r