Lines Matching refs:nh_dev
411 out_dev = rcu_dereference(nh->nh_dev); in mpls_forward()
699 RCU_INIT_POINTER(nh->nh_dev, dev); in mpls_nh_assign_dev()
1517 struct net_device *nh_dev = in mpls_ifdown() local
1518 rtnl_dereference(nh->nh_dev); in mpls_ifdown()
1520 if (!nh_dev || nh_dev == dev) in mpls_ifdown()
1522 if (nh_dev == dev) in mpls_ifdown()
1547 if (rtnl_dereference(nh->nh_dev) != dev) in mpls_ifdown()
1560 RCU_INIT_POINTER(nh->nh_dev, NULL); in mpls_ifdown()
1595 struct net_device *nh_dev = in mpls_ifup() local
1596 rtnl_dereference(nh->nh_dev); in mpls_ifup()
1602 if (nh_dev != dev) in mpls_ifup()
2047 dev = rtnl_dereference(nh->nh_dev); in mpls_dump_route()
2065 dev = rtnl_dereference(nh->nh_dev); in mpls_dump_route()
2176 struct net_device *nh_dev; in mpls_rt_uses_dev() local
2181 nh_dev = rtnl_dereference(nh->nh_dev); in mpls_rt_uses_dev()
2182 if (dev == nh_dev) in mpls_rt_uses_dev()
2186 nh_dev = rtnl_dereference(nh->nh_dev); in mpls_rt_uses_dev()
2187 if (nh_dev == dev) in mpls_rt_uses_dev()
2264 if (nh->nh_dev) in lfib_nlmsg_size()
2275 if (!rtnl_dereference(nh->nh_dev)) in lfib_nlmsg_size()
2521 dev = rtnl_dereference(nh->nh_dev); in mpls_getroute()
2560 RCU_INIT_POINTER(rt0->rt_nh->nh_dev, lo); in resize_platform_label_table()
2574 RCU_INIT_POINTER(rt2->rt_nh->nh_dev, lo); in resize_platform_label_table()