Lines Matching refs:fib_nh
98 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
228 struct fib_nh *fib_nh; in nh_fill_node() local
277 fib_nh = &nhi->fib_nh; in nh_fill_node()
278 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
279 nla_put_be32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node()
326 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
525 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh()
568 if (ipv4_good_nh(&nhi->fib_nh)) in nexthop_select_path()
1321 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local
1334 err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); in nh_create_ipv4()
1336 fib_nh_release(net, fib_nh); in nh_create_ipv4()
1344 err = fib_check_nh(net, fib_nh, tb_id, 0, extack); in nh_create_ipv4()
1346 nh->nh_flags = fib_nh->fib_nh_flags; in nh_create_ipv4()
1347 fib_info_update_nhc_saddr(net, &fib_nh->nh_common, in nh_create_ipv4()
1348 fib_nh->fib_nh_scope); in nh_create_ipv4()
1350 fib_nh_release(net, fib_nh); in nh_create_ipv4()