Lines Matching refs:fib_nh
496 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
697 struct fib_nh *fib_nh; in nh_fill_node() local
746 fib_nh = &nhi->fib_nh; in nh_fill_node()
747 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
748 nla_put_be32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node()
808 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
1138 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh()
1176 if (ipv4_good_nh(&nhi->fib_nh)) in nexthop_select_path_hthr()
2510 struct fib_nh *fib_nh = &nhi->fib_nh; in nh_create_ipv4() local
2523 err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack); in nh_create_ipv4()
2525 fib_nh_release(net, fib_nh); in nh_create_ipv4()
2533 err = fib_check_nh(net, fib_nh, tb_id, 0, extack); in nh_create_ipv4()
2535 nh->nh_flags = fib_nh->fib_nh_flags; in nh_create_ipv4()
2536 fib_info_update_nhc_saddr(net, &fib_nh->nh_common, in nh_create_ipv4()
2537 !fib_nh->fib_nh_scope ? 0 : fib_nh->fib_nh_scope - 1); in nh_create_ipv4()
2539 fib_nh_release(net, fib_nh); in nh_create_ipv4()