]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: Only Replay routes of interest to new listeners
authorIdo Schimmel <idosch@mellanox.com>
Sat, 14 Dec 2019 15:53:13 +0000 (17:53 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Dec 2019 00:14:42 +0000 (16:14 -0800)
commitff7ae798a3ef8d4330d777e46c53d6ed4c75964e
tree0fd7393fd2a86744041455f2db18946f585e6b26
parent965bd6b45f75fc456b33dd07634fe117964e523a
ipv4: Only Replay routes of interest to new listeners

When a new listener is registered to the FIB notification chain it
receives a dump of all the available routes in the system. Instead, make
sure to only replay the IPv4 routes that are actually used in the data
path and are of any interest to the new listener.

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