Lines Matching refs:fib_nh_dev

276 				if (!nexthop_nh->fib_nh_dev)  in fib_release_info()
451 if (nh->fib_nh_dev == dev && in ip_fib_check_default()
814 if (ip_ignore_linkdown(nh->fib_nh_dev) && in fib_rebalance()
827 } else if (ip_ignore_linkdown(nexthop_nh->fib_nh_dev) && in fib_rebalance()
1064 nh->fib_nh_dev = fib6_nh.fib_nh_dev; in fib_check_nh_v6_gw()
1065 netdev_hold(nh->fib_nh_dev, &nh->fib_nh_dev_tracker, in fib_check_nh_v6_gw()
1067 nh->fib_nh_oif = nh->fib_nh_dev->ifindex; in fib_check_nh_v6_gw()
1149 nh->fib_nh_dev = dev; in fib_check_nh_v4_gw()
1198 nh->fib_nh_dev = dev = FIB_RES_DEV(res); in fib_check_nh_v4_gw()
1237 nh->fib_nh_dev = in_dev->dev; in fib_check_nh_nongw()
1238 netdev_hold(nh->fib_nh_dev, &nh->fib_nh_dev_tracker, GFP_ATOMIC); in fib_check_nh_nongw()
1240 if (!netif_carrier_ok(nh->fib_nh_dev)) in fib_check_nh_nongw()
1332 nh->nh_saddr = inet_select_addr(nh->fib_nh_dev, nh->fib_nh_gw4, scope); in fib_info_update_nhc_saddr()
1543 nh->fib_nh_dev = dev_get_by_index(net, nh->fib_nh_oif); in fib_create_info()
1545 if (!nh->fib_nh_dev) in fib_create_info()
1547 netdev_tracker_alloc(nh->fib_nh_dev, &nh->fib_nh_dev_tracker, in fib_create_info()
1608 if (!nexthop_nh->fib_nh_dev) in fib_create_info()
1610 head = fib_info_devhash_bucket(nexthop_nh->fib_nh_dev); 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()
1966 if (nh->fib_nh_dev == dev) in fib_sync_mtu()
1995 if (nh->fib_nh_dev != dev || fi == prev_fi) in fib_sync_down_dev()
2002 else if (nexthop_nh->fib_nh_dev == dev && in fib_sync_down_dev()
2019 nexthop_nh->fib_nh_dev == dev) { in fib_sync_down_dev()
2154 if (nh->fib_nh_dev != dev || fi == prev_fi) in fib_sync_up()
2164 if (!nexthop_nh->fib_nh_dev || in fib_sync_up()
2165 !(nexthop_nh->fib_nh_dev->flags & IFF_UP)) in fib_sync_up()
2167 if (nexthop_nh->fib_nh_dev != dev || in fib_sync_up()
2197 n = __ipv4_neigh_lookup_noref(nh->fib_nh_dev, in fib_good_nh()
2200 n = __ipv6_neigh_lookup_noref_stub(nh->fib_nh_dev, in fib_good_nh()