On 9/8/20 3:10 AM, Ido Schimmel wrote:
> From: Ido Schimmel <ido...@nvidia.com>
> 
> Currently, the delete notification is emitted from the error path of
> nexthop_add() and replace_nexthop(), which can be confusing to listeners
> as they are not familiar with the nexthop.
> 
> Instead, only emit the notification when the nexthop is actually
> deleted. The following sub-cases are covered:
> 
> 1. User space deletes the nexthop
> 2. The nexthop is deleted by the kernel due to a netdev event (e.g.,
>    nexthop device going down)
> 3. A group is deleted because its last nexthop is being deleted
> 4. The network namespace of the nexthop device is deleted
> 
> Signed-off-by: Ido Schimmel <ido...@nvidia.com>
> ---
>  net/ipv4/nexthop.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Reviewed-by: David Ahern <dsah...@gmail.com>


Reply via email to