]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit04bbd3dac8cd20fefa23750419ad996cc3870f8c
tree08384a377310c14cd9ad89c4183d6f999a7efd97
parent605e979937c5958705f5e219c9d3b4f16db3f9a9
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