ipv4: Prepare for fib6_nh from a nexthop object
Convert more IPv4 code to use fib_nh_common over fib_nh to enable routes to use a fib6_nh based nexthop. In the end, only code not using a nexthop object in a fib_info should directly access fib_nh in a fib_info without checking the famiy and going through fib_nh_common. Those functions will be marked when it is not directly evident. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
5481d73f81
commit
dcb1ecb50e
@@ -1585,7 +1585,7 @@ static void rt_set_nexthop(struct rtable *rt, __be32 daddr,
|
||||
ip_dst_init_metrics(&rt->dst, fi->fib_metrics);
|
||||
|
||||
#ifdef CONFIG_IP_ROUTE_CLASSID
|
||||
{
|
||||
if (nhc->nhc_family == AF_INET) {
|
||||
struct fib_nh *nh;
|
||||
|
||||
nh = container_of(nhc, struct fib_nh, nh_common);
|
||||
|
||||
Reference in New Issue
Block a user