Lines Matching refs:fib_nh
495 fib_nh_release(nh->net, &nhi->fib_nh); in nexthop_free_single()
696 struct fib_nh *fib_nh; in nh_fill_node() local
745 fib_nh = &nhi->fib_nh; in nh_fill_node()
746 if (fib_nh->fib_nh_gw_family && in nh_fill_node()
747 nla_put_be32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4)) in nh_fill_node()
807 if (nhi->fib_nh.fib_nh_gw_family) in nh_nlmsg_size_single()
1137 static bool ipv4_good_nh(const struct fib_nh *nh) in ipv4_good_nh()
1175 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); in nh_create_ipv4()
2539 fib_nh_release(net, fib_nh); in nh_create_ipv4()