diff options
author | Ido Schimmel <idosch@nvidia.com> | 2020-09-15 13:41:01 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-09-16 01:31:17 +0200 |
commit | 80690ec6b595807db9a52ec5b225a2d88033ddb5 (patch) | |
tree | 08384a377310c14cd9ad89c4183d6f999a7efd97 /include | |
parent | nexthop: Remove NEXTHOP_EVENT_ADD (diff) | |
download | linux-80690ec6b595807db9a52ec5b225a2d88033ddb5.tar.xz linux-80690ec6b595807db9a52ec5b225a2d88033ddb5.zip |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/netns/nexthop.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netns/nexthop.h b/include/net/netns/nexthop.h index 1937476c94a0..1849e77eb68a 100644 --- a/include/net/netns/nexthop.h +++ b/include/net/netns/nexthop.h @@ -14,6 +14,6 @@ struct netns_nexthop { unsigned int seq; /* protected by rtnl_mutex */ u32 last_id_allocated; - struct atomic_notifier_head notifier_chain; + struct blocking_notifier_head notifier_chain; }; #endif |