nexthop: Convert to blocking notification chain
authorIdo Schimmel <idosch@nvidia.com>
Tue, 15 Sep 2020 11:41:01 +0000 (14:41 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Sep 2020 23:31:17 +0000 (16:31 -0700)
commit80690ec6b595807db9a52ec5b225a2d88033ddb5
tree08384a377310c14cd9ad89c4183d6f999a7efd97
parent52f7232a790a36da30eb64c6de6067a9e4ad194c
nexthop: Convert to blocking notification chain

Currently, the only listener of the nexthop notification chain is the
VXLAN driver. Subsequent patches will add more listeners (e.g., device
drivers such as netdevsim) that need to be able to block when processing
notifications.

Therefore, convert the notification chain to a blocking one. This is
safe as notifications are always emitted from process context.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netns/nexthop.h
net/ipv4/nexthop.c