]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4: fib_rules: Add notifier info to FIB rules notifications
authorIdo Schimmel <idosch@mellanox.com>
Thu, 16 Mar 2017 08:08:13 +0000 (09:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Mar 2017 17:18:33 +0000 (10:18 -0700)
commit0e3fea8e92505908134bb4fc9ee3dec204c9adc6
tree2a4695f68d2a3177951e24294637f610b2d16bf1
parentd43ee1a3ee879e3660976081036693a07d76e9fa
ipv4: fib_rules: Add notifier info to FIB rules notifications

Whenever a FIB rule is added or removed, a notification is sent in the
FIB notification chain. However, listeners don't have a way to tell
which rule was added or removed.

This is problematic as we would like to give listeners the ability to
decide which action to execute based on the notified rule. Specifically,
offloading drivers should be able to determine if they support the
reflection of the notified FIB rule and flush their LPM tables in case
they don't.

Do that by adding a notifier info to these notifications and embed the
common FIB rule struct in it.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_fib.h
net/ipv4/fib_rules.c