Lines Matching refs:fib_nh_dev
275 if (!nexthop_nh->fib_nh_dev) in fib_release_info()
449 if (nh->fib_nh_dev == dev && in ip_fib_check_default()
812 if (ip_ignore_linkdown(nh->fib_nh_dev) && in fib_rebalance()
825 } else if (ip_ignore_linkdown(nexthop_nh->fib_nh_dev) && in fib_rebalance()
1059 nh->fib_nh_dev = fib6_nh.fib_nh_dev; in fib_check_nh_v6_gw()
1060 dev_hold_track(nh->fib_nh_dev, &nh->fib_nh_dev_tracker, GFP_KERNEL); in fib_check_nh_v6_gw()
1061 nh->fib_nh_oif = nh->fib_nh_dev->ifindex; in fib_check_nh_v6_gw()
1143 nh->fib_nh_dev = dev; in fib_check_nh_v4_gw()
1192 nh->fib_nh_dev = dev = FIB_RES_DEV(res); in fib_check_nh_v4_gw()
1231 nh->fib_nh_dev = in_dev->dev; in fib_check_nh_nongw()
1232 dev_hold_track(nh->fib_nh_dev, &nh->fib_nh_dev_tracker, GFP_ATOMIC); in fib_check_nh_nongw()
1234 if (!netif_carrier_ok(nh->fib_nh_dev)) in fib_check_nh_nongw()
1326 nh->nh_saddr = inet_select_addr(nh->fib_nh_dev, nh->fib_nh_gw4, scope); in fib_info_update_nhc_saddr()
1537 nh->fib_nh_dev = dev_get_by_index(net, nh->fib_nh_oif); in fib_create_info()
1539 if (!nh->fib_nh_dev) in fib_create_info()
1541 netdev_tracker_alloc(nh->fib_nh_dev, &nh->fib_nh_dev_tracker, in fib_create_info()
1602 if (!nexthop_nh->fib_nh_dev) in fib_create_info()
1604 head = fib_info_devhash_bucket(nexthop_nh->fib_nh_dev); in fib_create_info()
1890 bool ignore_link_down = ip_ignore_linkdown(nh->fib_nh_dev); in call_fib_nh_notifiers()
1901 return call_fib4_notifiers(dev_net(nh->fib_nh_dev), event_type, in call_fib_nh_notifiers()
1906 return call_fib4_notifiers(dev_net(nh->fib_nh_dev), in call_fib_nh_notifiers()
1960 if (nh->fib_nh_dev == dev) in fib_sync_mtu()
1989 if (nh->fib_nh_dev != dev || fi == prev_fi) in fib_sync_down_dev()
1996 else if (nexthop_nh->fib_nh_dev == dev && in fib_sync_down_dev()
2013 nexthop_nh->fib_nh_dev == dev) { in fib_sync_down_dev()
2148 if (nh->fib_nh_dev != dev || fi == prev_fi) in fib_sync_up()
2158 if (!nexthop_nh->fib_nh_dev || in fib_sync_up()
2159 !(nexthop_nh->fib_nh_dev->flags & IFF_UP)) in fib_sync_up()
2161 if (nexthop_nh->fib_nh_dev != dev || in fib_sync_up()
2191 n = __ipv4_neigh_lookup_noref(nh->fib_nh_dev, in fib_good_nh()
2194 n = __ipv6_neigh_lookup_noref_stub(nh->fib_nh_dev, in fib_good_nh()