ipv4: Notify route after insertion to the routing table
authorIdo Schimmel <idosch@mellanox.com>
Sat, 14 Dec 2019 15:53:07 +0000 (17:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:14:42 +0000 (16:14 -0800)
commita6c76c17df021b141b0d306828c9fe4ba2d2717c
treea9d119c20efe075ad96a24d37f62e10480963df5
parentba8381236fd0fa0ab4e8383fb752c843a31dd019
ipv4: Notify route after insertion to the routing table

Currently, a new route is notified in the FIB notification chain before
it is inserted to the FIB alias list.

Subsequent patches will use the placement of the new route in the
ordered FIB alias list in order to determine if the route should be
notified or not.

As a preparatory step, change the order so that the route is first
inserted into the FIB alias list and only then notified.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c