Thread (26 messages) 26 messages, 5 authors, 2018-04-09

Re: [PATCH net-next 3/6] net/ipv4: Move call_fib_entry_notifiers up for new routes

From: Ido Schimmel <hidden>
Date: 2018-03-29 08:23:01

On Tue, Mar 27, 2018 at 06:21:57PM -0700, David Ahern wrote:
Move call to call_fib_entry_notifiers for new IPv4 routes to right
before the call to fib_insert_alias. At this point the only remaining
failure path is memory allocations in fib_insert_node. Handle that
very unlikely failure with a call to call_fib_entry_notifiers to
tell drivers about it.

At this point notifier handlers can decide the fate of the new route
with a clean path to delete the potential new entry if the notifier
returns non-0.

Signed-off-by: David Ahern <redacted>
Reviewed-by: Ido Schimmel <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help