Lines Matching refs:fib_nh_dev
269 if (!nexthop_nh->fib_nh_dev) in fib_release_info()
440 if (nh->fib_nh_dev == dev && in ip_fib_check_default()
803 if (ip_ignore_linkdown(nh->fib_nh_dev) && in fib_rebalance()
816 } else if (ip_ignore_linkdown(nexthop_nh->fib_nh_dev) && in fib_rebalance()
1045 nh->fib_nh_dev = fib6_nh.fib_nh_dev; in fib_check_nh_v6_gw()
1046 dev_hold(nh->fib_nh_dev); in fib_check_nh_v6_gw()
1047 nh->fib_nh_oif = nh->fib_nh_dev->ifindex; in fib_check_nh_v6_gw()
1129 nh->fib_nh_dev = dev; in fib_check_nh_v4_gw()
1178 nh->fib_nh_dev = dev = FIB_RES_DEV(res); in fib_check_nh_v4_gw()
1217 nh->fib_nh_dev = in_dev->dev; in fib_check_nh_nongw()
1218 dev_hold(nh->fib_nh_dev); in fib_check_nh_nongw()
1220 if (!netif_carrier_ok(nh->fib_nh_dev)) in fib_check_nh_nongw()
1334 nh->nh_saddr = inet_select_addr(nh->fib_nh_dev, nh->fib_nh_gw4, scope); in fib_info_update_nhc_saddr()
1544 nh->fib_nh_dev = dev_get_by_index(net, nh->fib_nh_oif); in fib_create_info()
1546 if (!nh->fib_nh_dev) in fib_create_info()
1607 if (!nexthop_nh->fib_nh_dev) in fib_create_info()
1609 hash = fib_devindex_hashfn(nexthop_nh->fib_nh_dev->ifindex); in fib_create_info()
1896 bool ignore_link_down = ip_ignore_linkdown(nh->fib_nh_dev); in call_fib_nh_notifiers()
1907 return call_fib4_notifiers(dev_net(nh->fib_nh_dev), event_type, in call_fib_nh_notifiers()
1912 return call_fib4_notifiers(dev_net(nh->fib_nh_dev), in call_fib_nh_notifiers()
1967 if (nh->fib_nh_dev == dev) in fib_sync_mtu()
1997 if (nh->fib_nh_dev != dev || fi == prev_fi) in fib_sync_down_dev()
2004 else if (nexthop_nh->fib_nh_dev == dev && in fib_sync_down_dev()
2021 nexthop_nh->fib_nh_dev == dev) { in fib_sync_down_dev()
2157 if (nh->fib_nh_dev != dev || fi == prev_fi) in fib_sync_up()
2167 if (!nexthop_nh->fib_nh_dev || in fib_sync_up()
2168 !(nexthop_nh->fib_nh_dev->flags & IFF_UP)) in fib_sync_up()
2170 if (nexthop_nh->fib_nh_dev != dev || in fib_sync_up()
2200 n = __ipv4_neigh_lookup_noref(nh->fib_nh_dev, in fib_good_nh()
2203 n = __ipv6_neigh_lookup_noref_stub(nh->fib_nh_dev, in fib_good_nh()