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()
1578 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_ifup()
1579 for (index = 0; index < net->mpls.platform_labels; index++) { in mpls_ifup()
2204 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_dump_routes()
2205 platform_labels = net->mpls.platform_labels; in mpls_dump_routes()
2563 old = rtnl_dereference(net->mpls.platform_label); in resize_platform_label_table()
2564 old_limit = net->mpls.platform_labels; in resize_platform_label_table()
2591 net->mpls.platform_labels = limit; in resize_platform_label_table()
2592 rcu_assign_pointer(net->mpls.platform_label, labels); in resize_platform_label_table()
2617 int platform_labels = net->mpls.platform_labels; in mpls_platform_labels()
2649 .data = MPLS_NS_SYSCTL_OFFSET(mpls.ip_ttl_propagate),
2658 .data = MPLS_NS_SYSCTL_OFFSET(mpls.default_ttl),
2673 net->mpls.platform_labels = 0; in mpls_net_init()
2674 net->mpls.platform_label = NULL; in mpls_net_init()
2675 net->mpls.ip_ttl_propagate = 1; in mpls_net_init()
2676 net->mpls.default_ttl = 255; in mpls_net_init()
2688 net->mpls.ctl = register_net_sysctl(net, "net/mpls", table); in mpls_net_init()
2689 if (net->mpls.ctl == NULL) { in mpls_net_init()
2704 table = net->mpls.ctl->ctl_table_arg; in mpls_net_exit()
2705 unregister_net_sysctl_table(net->mpls.ctl); in mpls_net_exit()
2718 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_net_exit()
2719 platform_labels = net->mpls.platform_labels; in mpls_net_exit()