summaryrefslogtreecommitdiffstats
path: root/net/ipv4/route.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-06-03 23:19:50 -0400
committerDavid S. Miller <davem@davemloft.net>2019-06-04 22:26:49 -0400
commitdcb1ecb50edf8219c3bd851de35897fb024c423b (patch)
tree29cc881d4f6e2d476a296562bdcb21c0f7f515e2 /net/ipv4/route.c
parent5481d73f81549e2a05cbbb49867a9a560c5292df (diff)
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>
Diffstat (limited to 'net/ipv4/route.c')
-rw-r--r--net/ipv4/route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/route.c b/net/ipv4/route.c
index 05a6a8ecb574..4a1168451f3a 100644
--- a/net/ipv4/route.c
+++ b/net/ipv4/route.c
@@ -1585,7 +1585,7 @@ static void rt_set_nexthop(struct rtable *rt, __be32 daddr,
1585 ip_dst_init_metrics(&rt->dst, fi->fib_metrics); 1585 ip_dst_init_metrics(&rt->dst, fi->fib_metrics);
1586 1586
1587#ifdef CONFIG_IP_ROUTE_CLASSID 1587#ifdef CONFIG_IP_ROUTE_CLASSID
1588 { 1588 if (nhc->nhc_family == AF_INET) {
1589 struct fib_nh *nh; 1589 struct fib_nh *nh;
1590 1590
1591 nh = container_of(nhc, struct fib_nh, nh_common); 1591 nh = container_of(nhc, struct fib_nh, nh_common);