OSDN Git Service

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)
commit20d1565203e68cd32d5db3e293e7323173ad7a0d
tree0fd7393fd2a86744041455f2db18946f585e6b26
parent525bc345fcbc6f0d58977452999dd18a15dc0e9b
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