Searched refs:mpls (Results 1 – 13 of 13) sorted by relevance
/net/mpls/ |
D | af_mpls.c | 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() [all …]
|
D | mpls_iptunnel.c | 82 !net->mpls.ip_ttl_propagate) in mpls_xmit() 83 ttl = net->mpls.default_ttl; in mpls_xmit() 91 !net->mpls.ip_ttl_propagate) in mpls_xmit() 92 ttl = net->mpls.default_ttl; in mpls_xmit()
|
D | Kconfig | 31 Add support for forwarding of mpls packets. 37 mpls ip tunnel support.
|
/net/openvswitch/ |
D | actions.c | 212 flow_key->mpls.lse[0] = lse; in set_mpls() 1333 struct ovs_action_push_mpls *mpls = nla_data(a); in do_execute_actions() local 1335 err = push_mpls(skb, key, mpls->mpls_lse, in do_execute_actions() 1336 mpls->mpls_ethertype, skb->mac_len); in do_execute_actions() 1340 struct ovs_action_add_mpls *mpls = nla_data(a); in do_execute_actions() local 1343 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) in do_execute_actions() 1346 err = push_mpls(skb, key, mpls->mpls_lse, in do_execute_actions() 1347 mpls->mpls_ethertype, mac_len); in do_execute_actions()
|
D | flow.c | 648 memset(&key->mpls, 0, sizeof(key->mpls)); in key_extract_l3l4() 661 memcpy(&key->mpls.lse[label_count - 1], &lse, in key_extract_l3l4() 674 key->mpls.num_labels_mask = GENMASK(label_count - 1, 0); in key_extract_l3l4()
|
D | flow_netlink.c | 1648 SW_FLOW_KEY_PUT(match, mpls.lse[i], in ovs_key_from_nlattrs() 1651 SW_FLOW_KEY_PUT(match, mpls.num_labels_mask, in ovs_key_from_nlattrs() 2138 num_labels = hweight_long(output->mpls.num_labels_mask); in __ovs_nla_put_key() 2146 mpls_key[i].mpls_lse = output->mpls.lse[i]; in __ovs_nla_put_key() 3238 const struct ovs_action_add_mpls *mpls = nla_data(a); in __ovs_nla_copy_actions() local 3240 if (!eth_p_mpls(mpls->mpls_ethertype)) in __ovs_nla_copy_actions() 3243 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) { in __ovs_nla_copy_actions() 3260 eth_type = mpls->mpls_ethertype; in __ovs_nla_copy_actions() 3265 const struct ovs_action_push_mpls *mpls = nla_data(a); in __ovs_nla_copy_actions() local 3267 if (!eth_p_mpls(mpls->mpls_ethertype)) in __ovs_nla_copy_actions() [all …]
|
D | flow.h | 139 } mpls; member
|
/net/ |
D | Makefile | 71 obj-$(CONFIG_MPLS) += mpls/
|
D | Kconfig | 238 source "net/mpls/Kconfig" 393 tunnels like mpls. There is no netdevice associated with a light
|
/net/sched/ |
D | act_mpls.c | 257 mpls_ttl = net->mpls.default_ttl ? in tcf_mpls_init() 258 net->mpls.default_ttl : ACT_MPLS_TTL_DEFAULT; in tcf_mpls_init()
|
D | cls_flower.c | 60 struct flow_dissector_key_mpls mpls; member 1642 ret = fl_set_key_mpls(tb, &key->mpls, &mask->mpls, extack); in fl_set_key() 1813 FLOW_DISSECTOR_KEY_MPLS, mpls); in fl_init_dissector() 2890 if (fl_dump_key_mpls(skb, &key->mpls, &mask->mpls)) in fl_dump_key()
|
/net/core/ |
D | pktgen.c | 2737 static void mpls_push(__be32 *mpls, struct pktgen_dev *pkt_dev) in mpls_push() argument 2741 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; in mpls_push() 2743 mpls--; in mpls_push() 2744 *mpls |= MPLS_STACK_BOTTOM; in mpls_push() 2868 __be32 *mpls; in fill_packet_ipv4() local 2898 mpls = skb_put(skb, pkt_dev->nr_labels * sizeof(__u32)); in fill_packet_ipv4() 2900 mpls_push(mpls, pkt_dev); in fill_packet_ipv4() 2996 __be32 *mpls; in fill_packet_ipv6() local 3026 mpls = skb_put(skb, pkt_dev->nr_labels * sizeof(__u32)); in fill_packet_ipv6() 3028 mpls_push(mpls, pkt_dev); in fill_packet_ipv6()
|
/net/wireless/ |
D | util.c | 869 struct mpls_label mpls_tmp, *mpls; in cfg80211_classify8021d() local 871 mpls = skb_header_pointer(skb, sizeof(struct ethhdr), in cfg80211_classify8021d() 872 sizeof(*mpls), &mpls_tmp); in cfg80211_classify8021d() 873 if (!mpls) in cfg80211_classify8021d() 876 ret = (ntohl(mpls->entry) & MPLS_LS_TC_MASK) in cfg80211_classify8021d()
|