]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: Notify multipath route if should be offloaded
authorIdo Schimmel <idosch@mellanox.com>
Mon, 23 Dec 2019 13:28:15 +0000 (15:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Dec 2019 06:37:29 +0000 (22:37 -0800)
commitde258adc3a8ba0ae5d1e10ac62561581f6a40ad0
tree74c63019a152e619357feda8396de3b90dde45b5
parenteb48f4d9d66d39fbc9d279aaf1c20f64b478d602
ipv6: Notify multipath route if should be offloaded

In a similar fashion to previous patches, only notify the new multipath
route if it is the first route in the node or if it was appended to such
route.

The type of the notification (replace vs. append) is determined based on
the number of routes added ('nhn') and the number of sibling routes. If
the two do not match, then an append notification should be sent.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c