]> 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)
commit2ccf177a996833a48122f1b31538455559ee7a7a
treea9d119c20efe075ad96a24d37f62e10480963df5
parent5c7caf3f6f1752e4dac105996683aca2a253382b
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