]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2da1c0785d1e08a86ceb173b19d93550f1b8f88a
treea9d119c20efe075ad96a24d37f62e10480963df5
parent4b170bb344c3173f0d09b9dce79cae1a04f3ae80
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