Re: [PATCH v2 net-next] Ipvlan should return an error when an address is already in use.

2017-06-09 Thread Krister Johansen
On Fri, Jun 09, 2017 at 01:15:10PM -0400, David Miller wrote: > From: Krister Johansen > Date: Fri, 9 Jun 2017 10:13:10 -0700 > > > On Fri, Jun 09, 2017 at 12:26:46PM -0400, David Miller wrote: > >> From: Krister Johansen > >> Date: Thu, 8 Jun 2017 13:12:14 -0700 > >> > >> > The ipvlan code alr

Re: [PATCH v2 net-next] Ipvlan should return an error when an address is already in use.

2017-06-09 Thread David Miller
From: Krister Johansen Date: Fri, 9 Jun 2017 10:13:10 -0700 > On Fri, Jun 09, 2017 at 12:26:46PM -0400, David Miller wrote: >> From: Krister Johansen >> Date: Thu, 8 Jun 2017 13:12:14 -0700 >> >> > The ipvlan code already knows how to detect when a duplicate address is >> > about to be assigned

Re: [PATCH v2 net-next] Ipvlan should return an error when an address is already in use.

2017-06-09 Thread Krister Johansen
On Fri, Jun 09, 2017 at 12:26:46PM -0400, David Miller wrote: > From: Krister Johansen > Date: Thu, 8 Jun 2017 13:12:14 -0700 > > > The ipvlan code already knows how to detect when a duplicate address is > > about to be assigned to an ipvlan device. However, that failure is not > > propogated ou

Re: [PATCH v2 net-next] Ipvlan should return an error when an address is already in use.

2017-06-09 Thread David Miller
From: Krister Johansen Date: Thu, 8 Jun 2017 13:12:14 -0700 > The ipvlan code already knows how to detect when a duplicate address is > about to be assigned to an ipvlan device. However, that failure is not > propogated outward and leads to a silent failure. > > Introduce a validation step at i

[PATCH v2 net-next] Ipvlan should return an error when an address is already in use.

2017-06-08 Thread Krister Johansen
The ipvlan code already knows how to detect when a duplicate address is about to be assigned to an ipvlan device. However, that failure is not propogated outward and leads to a silent failure. Introduce a validation step at ip address creation time and allow device drivers to register to validate