diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2018-03-27 18:21:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-29 14:10:30 -0400 |
commit | 6635f311eab40b6d97eb884f371be41d0f5a3ed6 (patch) | |
tree | abfa6b3efeacc7c14c1f19e0ac1db52c6ae832a7 /Documentation/blockdev/floppy.txt | |
parent | 9776d32537d2bbc251fd1de651e2bb2439474bde (diff) |
net/ipv4: Move call_fib_entry_notifiers up for new routes
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 <dsa@cumulusnetworks.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/blockdev/floppy.txt')
0 files changed, 0 insertions, 0 deletions