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)
commit0ee0f47c26b2f909ec95d7d8fed8119e288c4dd3
tree74c63019a152e619357feda8396de3b90dde45b5
parent51bf7f387fdfe5ec8c33734b3124ccec83c8d0c3
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