]> git.baikalelectronics.ru Git - kernel.git/commit
nexthop: Add support for IPv4 nexthops
authorDavid Ahern <dsahern@gmail.com>
Fri, 24 May 2019 21:43:05 +0000 (14:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 May 2019 04:37:30 +0000 (21:37 -0700)
commit0b2837f003c1bbd85c94bd47d29aea2173e92e62
tree654185d19b811823df503a1d33d1127e667184d6
parent4d9784be391eb2c580bd7698b9416d90a272aca2
nexthop: Add support for IPv4 nexthops

Add support for IPv4 nexthops. If nh_family is set to AF_INET, then
NHA_GATEWAY is expected to be an IPv4 address.

Register for netdev events to be notified of admin up/down changes as
well as deletes. A hash table is used to track nexthop per devices to
quickly convert device events to the affected nexthops.

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