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()
559 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_route_update()
575 platform_label = rtnl_dereference(net->mpls.platform_label); in find_free_label()
576 platform_labels = net->mpls.platform_labels; in find_free_label()
950 if (is_ok && *index >= net->mpls.platform_labels) { in mpls_label_ok()
956 *index = array_index_nospec(*index, net->mpls.platform_labels); in mpls_label_ok()
991 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_route_add()
1501 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_ifdown()
1502 for (index = 0; index < net->mpls.platform_labels; index++) { in mpls_ifdown()
1552 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_ifup()
1553 for (index = 0; index < net->mpls.platform_labels; index++) { in mpls_ifup()
2187 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_dump_routes()
2188 platform_labels = net->mpls.platform_labels; in mpls_dump_routes()
2546 old = rtnl_dereference(net->mpls.platform_label); in resize_platform_label_table()
2547 old_limit = net->mpls.platform_labels; in resize_platform_label_table()
2574 net->mpls.platform_labels = limit; in resize_platform_label_table()
2575 rcu_assign_pointer(net->mpls.platform_label, labels); in resize_platform_label_table()
2600 int platform_labels = net->mpls.platform_labels; in mpls_platform_labels()
2632 .data = MPLS_NS_SYSCTL_OFFSET(mpls.ip_ttl_propagate),
2641 .data = MPLS_NS_SYSCTL_OFFSET(mpls.default_ttl),
2656 net->mpls.platform_labels = 0; in mpls_net_init()
2657 net->mpls.platform_label = NULL; in mpls_net_init()
2658 net->mpls.ip_ttl_propagate = 1; in mpls_net_init()
2659 net->mpls.default_ttl = 255; in mpls_net_init()
2671 net->mpls.ctl = register_net_sysctl(net, "net/mpls", table); in mpls_net_init()
2672 if (net->mpls.ctl == NULL) { in mpls_net_init()
2687 table = net->mpls.ctl->ctl_table_arg; in mpls_net_exit()
2688 unregister_net_sysctl_table(net->mpls.ctl); in mpls_net_exit()
2701 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_net_exit()
2702 platform_labels = net->mpls.platform_labels; in mpls_net_exit()