Lines Matching refs:mpls
81 if (index < net->mpls.platform_labels) { in mpls_route_input_rcu()
83 rcu_dereference(net->mpls.platform_label); in mpls_route_input_rcu()
304 net->mpls.ip_ttl_propagate)) in mpls_egress()
326 net->mpls.ip_ttl_propagate)) in mpls_egress()
561 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_route_update()
577 platform_label = rtnl_dereference(net->mpls.platform_label); in find_free_label()
578 platform_labels = net->mpls.platform_labels; in find_free_label()
952 if (is_ok && *index >= net->mpls.platform_labels) { in mpls_label_ok()
958 *index = array_index_nospec(*index, net->mpls.platform_labels); in mpls_label_ok()
993 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_route_add()
1500 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_ifdown()
1501 for (index = 0; index < net->mpls.platform_labels; index++) { in mpls_ifdown()
1577 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_ifup()
1578 for (index = 0; index < net->mpls.platform_labels; index++) { in mpls_ifup()
2203 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_dump_routes()
2204 platform_labels = net->mpls.platform_labels; in mpls_dump_routes()
2562 old = rtnl_dereference(net->mpls.platform_label); in resize_platform_label_table()
2563 old_limit = net->mpls.platform_labels; in resize_platform_label_table()
2590 net->mpls.platform_labels = limit; in resize_platform_label_table()
2591 rcu_assign_pointer(net->mpls.platform_label, labels); in resize_platform_label_table()
2616 int platform_labels = net->mpls.platform_labels; in mpls_platform_labels()
2648 .data = MPLS_NS_SYSCTL_OFFSET(mpls.ip_ttl_propagate),
2657 .data = MPLS_NS_SYSCTL_OFFSET(mpls.default_ttl),
2672 net->mpls.platform_labels = 0; in mpls_net_init()
2673 net->mpls.platform_label = NULL; in mpls_net_init()
2674 net->mpls.ip_ttl_propagate = 1; in mpls_net_init()
2675 net->mpls.default_ttl = 255; in mpls_net_init()
2687 net->mpls.ctl = register_net_sysctl(net, "net/mpls", table); in mpls_net_init()
2688 if (net->mpls.ctl == NULL) { in mpls_net_init()
2703 table = net->mpls.ctl->ctl_table_arg; in mpls_net_exit()
2704 unregister_net_sysctl_table(net->mpls.ctl); in mpls_net_exit()
2717 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_net_exit()
2718 platform_labels = net->mpls.platform_labels; in mpls_net_exit()