Home
last modified time | relevance | path

Searched refs:mpls (Results 1 – 14 of 14) sorted by relevance

/linux-4.1.27/net/mpls/
Daf_mpls.c48 if (index < net->mpls.platform_labels) { in mpls_route_input_rcu()
50 rcu_dereference(net->mpls.platform_label); in mpls_route_input_rcu()
302 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_route_update()
321 platform_label = rtnl_dereference(net->mpls.platform_label); in find_free_label()
322 platform_labels = net->mpls.platform_labels; in find_free_label()
353 if (index >= net->mpls.platform_labels) in mpls_route_add()
381 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_route_add()
431 if (index >= net->mpls.platform_labels) in mpls_route_del()
526 platform_label = rtnl_dereference(net->mpls.platform_label); in mpls_ifdown()
527 for (index = 0; index < net->mpls.platform_labels; index++) { in mpls_ifdown()
[all …]
DKconfig28 Add support for forwarding of mpls packets.
/linux-4.1.27/Documentation/networking/
Dmpls-sysctl.txt1 /proc/sys/net/mpls/* Variables:
13 label will be recognized by the kernel and mpls forwarding
Dpktgen.txt159 pgset "mpls 0001000a,0002000a,0000000a" set MPLS labels (in this example
173 pgset "mpls 0" turn off mpls (or any invalid argument works too!)
264 mpls
/linux-4.1.27/net/openvswitch/
Dactions.c123 const struct ovs_action_push_mpls *mpls) in push_mpls() argument
141 *new_mpls_lse = mpls->mpls_lse; in push_mpls()
148 hdr->h_proto = mpls->mpls_ethertype; in push_mpls()
152 skb->protocol = mpls->mpls_ethertype; in push_mpls()
213 flow_key->mpls.top_lse = lse; in set_mpls()
Dflow.h142 } mpls; member
Dflow_netlink.c921 SW_FLOW_KEY_PUT(match, mpls.top_lse, in ovs_key_from_nlattrs()
1404 mpls_key->mpls_lse = output->mpls.top_lse; in __ovs_nla_put_key()
2092 const struct ovs_action_push_mpls *mpls = nla_data(a); in __ovs_nla_copy_actions() local
2094 if (!eth_p_mpls(mpls->mpls_ethertype)) in __ovs_nla_copy_actions()
2106 eth_type = mpls->mpls_ethertype; in __ovs_nla_copy_actions()
Dflow.c612 memcpy(&key->mpls.top_lse, &lse, MPLS_HLEN); in key_extract()
/linux-4.1.27/net/
DMakefile72 obj-$(CONFIG_MPLS) += mpls/
DKconfig229 source "net/mpls/Kconfig"
/linux-4.1.27/net/wireless/
Dutil.c777 struct mpls_label mpls_tmp, *mpls; in cfg80211_classify8021d() local
779 mpls = skb_header_pointer(skb, sizeof(struct ethhdr), in cfg80211_classify8021d()
780 sizeof(*mpls), &mpls_tmp); in cfg80211_classify8021d()
781 if (!mpls) in cfg80211_classify8021d()
784 return (ntohl(mpls->entry) & MPLS_LS_TC_MASK) in cfg80211_classify8021d()
/linux-4.1.27/include/net/
Dnet_namespace.h132 struct netns_mpls mpls; member
/linux-4.1.27/net/core/
Dpktgen.c2636 static void mpls_push(__be32 *mpls, struct pktgen_dev *pkt_dev) in mpls_push() argument
2640 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; in mpls_push()
2642 mpls--; in mpls_push()
2643 *mpls |= MPLS_STACK_BOTTOM; in mpls_push()
2755 __be32 *mpls; in fill_packet_ipv4() local
2787 mpls = (__be32 *)skb_put(skb, pkt_dev->nr_labels*sizeof(__u32)); in fill_packet_ipv4()
2789 mpls_push(mpls, pkt_dev); in fill_packet_ipv4()
2884 __be32 *mpls; in fill_packet_ipv6() local
2914 mpls = (__be32 *)skb_put(skb, pkt_dev->nr_labels*sizeof(__u32)); in fill_packet_ipv6()
2916 mpls_push(mpls, pkt_dev); in fill_packet_ipv6()
/linux-4.1.27/include/uapi/linux/
DKbuild262 header-y += mpls.h