Lines Matching refs:nhc
1420 bool fib_lookup_good_nhc(const struct fib_nh_common *nhc, int fib_flags, in fib_lookup_good_nhc() argument
1423 if (nhc->nhc_flags & RTNH_F_DEAD) in fib_lookup_good_nhc()
1426 if (ip_ignore_linkdown(nhc->nhc_dev) && in fib_lookup_good_nhc()
1427 nhc->nhc_flags & RTNH_F_LINKDOWN && in fib_lookup_good_nhc()
1433 flp->flowi4_oif != nhc->nhc_oif) in fib_lookup_good_nhc()
1572 struct fib_nh_common *nhc; in fib_table_lookup() local
1605 nhc = nexthop_get_nhc_lookup(fi->nh, fib_flags, flp, in fib_table_lookup()
1607 if (nhc) in fib_table_lookup()
1613 nhc = fib_info_nhc(fi, nhsel); in fib_table_lookup()
1615 if (!fib_lookup_good_nhc(nhc, fib_flags, flp)) in fib_table_lookup()
1624 res->nhc = nhc; in fib_table_lookup()
1633 trace_fib_table_lookup(tb->tb_id, flp, nhc, err); in fib_table_lookup()
2939 const struct fib_nh_common *nhc = fib_info_nhc(fi, 0); in fib_flag_trans() local
2941 if (nhc->nhc_gw.ipv4) in fib_flag_trans()
2988 struct fib_nh_common *nhc = fib_info_nhc(fi, 0); in fib_route_seq_show() local
2991 if (nhc->nhc_gw_family == AF_INET) in fib_route_seq_show()
2992 gw = nhc->nhc_gw.ipv4; in fib_route_seq_show()
2997 nhc->nhc_dev ? nhc->nhc_dev->name : "*", in fib_route_seq_show()