]> 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)
commitb7a775efedf4e0464c5f20e884317247eda32917
tree08384a377310c14cd9ad89c4183d6f999a7efd97
parent48e4cc527a3f5339a6a23637820b70525fadb6b5
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