Generate netlink notification when default IPv6 route preference changes
authorKalash Nainwal <kalash@arista.com>
Thu, 10 Feb 2022 22:09:35 +0000 (14:09 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Feb 2022 11:15:37 +0000 (11:15 +0000)
commit806c37ddcf286665adce5c3a99b5fe4424cbf9fe
tree3811afe482af9e67fc6df748a01989cc9017af5e
parent4ddc844eb81da59bfb816d8d52089aba4e59e269
Generate netlink notification when default IPv6 route preference changes

Generate RTM_NEWROUTE netlink notification when the route preference
 changes on an existing kernel generated default route in response to
 RA messages. Currently netlink notifications are generated only when
 this route is added or deleted but not when the route preference
 changes, which can cause userspace routing application state to go
 out of sync with kernel.

Signed-off-by: Kalash Nainwal <kalash@arista.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c