Re: [PATCH RFC net-next 1/7] net: Fix fib notifer to return errno

2018-03-25 Thread Ido Schimmel
On Sun, Mar 25, 2018 at 08:00:19AM -0600, David Ahern wrote: > On 3/25/18 2:16 AM, Ido Schimmel wrote: > > On Thu, Mar 22, 2018 at 03:57:51PM -0700, David Ahern wrote: > >> Notifier handlers use notifier_from_errno to convert any potential error > >> to an encoded format. As a consequence the other

Re: [PATCH RFC net-next 1/7] net: Fix fib notifer to return errno

2018-03-25 Thread David Ahern
On 3/25/18 2:16 AM, Ido Schimmel wrote: > On Thu, Mar 22, 2018 at 03:57:51PM -0700, David Ahern wrote: >> Notifier handlers use notifier_from_errno to convert any potential error >> to an encoded format. As a consequence the other side, call_fib_notifiers >> in this case, needs to use notifier_to_e

Re: [PATCH RFC net-next 1/7] net: Fix fib notifer to return errno

2018-03-25 Thread Ido Schimmel
On Thu, Mar 22, 2018 at 03:57:51PM -0700, David Ahern wrote: > Notifier handlers use notifier_from_errno to convert any potential error > to an encoded format. As a consequence the other side, call_fib_notifiers > in this case, needs to use notifier_to_errno to return the error from > the handler b

[PATCH RFC net-next 1/7] net: Fix fib notifer to return errno

2018-03-22 Thread David Ahern
Notifier handlers use notifier_from_errno to convert any potential error to an encoded format. As a consequence the other side, call_fib_notifiers in this case, needs to use notifier_to_errno to return the error from the handler back to its caller. Signed-off-by: David Ahern --- net/core/fib_not