Home
last modified time | relevance | path

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

/linux/net/mpls/
H A Daf_mpls.c81 platform_label = mpls_dereference(net, net->mpls.platform_label); in mpls_route_input()
91 sequence = read_seqcount_begin(&net->mpls.platform_label_seq); in mpls_platform_label_rcu()
92 platform_label = rcu_dereference(net->mpls.platform_label); in mpls_platform_label_rcu()
93 *platform_labels = net->mpls.platform_labels; in mpls_platform_label_rcu()
94 } while (read_seqcount_retry(&net->mpls.platform_label_seq, sequence)); in mpls_platform_label_rcu()
328 net->mpls.ip_ttl_propagate)) in mpls_egress()
350 net->mpls.ip_ttl_propagate)) in mpls_egress()
596 platform_label = mpls_dereference(net, net->mpls.platform_label); in mpls_route_update()
611 index < net->mpls.platform_labels; in find_free_label()
982 if (*index >= net->mpls.platform_labels) { in mpls_label_ok()
[all …]
H A Dmpls_iptunnel.c3 * mpls tunnels An implementation mpls tunnels using the light weight tunnel
12 #include <linux/mpls.h>
80 !net->mpls.ip_ttl_propagate) in mpls_xmit()
81 ttl = net->mpls.default_ttl; in mpls_xmit()
89 !net->mpls.ip_ttl_propagate) in mpls_xmit()
90 ttl = net->mpls.default_ttl; in mpls_xmit()
H A DKconfig31 Add support for forwarding of mpls packets.
37 mpls ip tunnel support.
/linux/tools/testing/selftests/net/forwarding/
H A Dtc_mpls_l2vpn.sh84 action mpls mac_push label 102 \
94 action mpls pop protocol teb \
113 action mpls mac_push label 101 \
123 action mpls pop protocol teb \
H A Dtc_flower.sh556 flower $tcflags mpls lse depth 1 label 0 action continue
558 flower $tcflags mpls lse depth 1 tc 0 action continue
560 flower $tcflags mpls lse depth 1 bos 0 action continue
562 flower $tcflags mpls lse depth 1 ttl 0 action continue
566 flower $tcflags mpls lse depth 2 label 1048575 action continue
568 flower $tcflags mpls lse depth 2 tc 7 action continue
570 flower $tcflags mpls lse depth 2 bos 1 action continue
572 flower $tcflags mpls lse depth 2 ttl 255 action continue
576 flower $tcflags mpls lse depth 1 action continue
578 flower $tcflags mpls lse depth 2 action continue
[all …]
H A Dlib.sh175 # Old versions of tc produce invalid json output for mpls lse statistics
182 flower mpls lse depth 2 \
/linux/tools/testing/selftests/net/
H A Dbareudp.sh236 ip -netns "${NS0}" route add 2001:db8::203/128 src 2001:db8::200 encap mpls 203 via 2001:db8::11
237 ip -netns "${NS3}" route add 2001:db8::200/128 src 2001:db8::203 encap mpls 200 via 2001:db8::32
241 ip netns exec "${NS1}" sysctl -qw net.mpls.platform_labels=256
242 ip netns exec "${NS2}" sysctl -qw net.mpls.platform_labels=256
243 ip -netns "${NS1}" -family mpls route add 200 via inet6 2001:db8::10
244 ip -netns "${NS2}" -family mpls route add 203 via inet6 2001:db8::33
394 ip netns exec "${NS1}" sysctl -qw net.mpls.conf.bareudp_ns1.input=1
395 ip netns exec "${NS2}" sysctl -qw net.mpls.conf.bareudp_ns2.input=1
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_mplsoudp.c35 struct mpls_shim_hdr *mpls; in generate_ip_tun_hdr() local
37 mpls = (struct mpls_shim_hdr *)(udp + 1); in generate_ip_tun_hdr()
41 *mpls = mpls_entry_encode(mpls_info->label, mpls_info->ttl, mpls_info->tc, mpls_info->bos); in generate_ip_tun_hdr()
/linux/tools/testing/selftests/bpf/
H A Dtest_tc_tunnel.sh
/linux/Documentation/networking/
H A Dmpls-sysctl.rst7 /proc/sys/net/mpls/* Variables:
20 label will be recognized by the kernel and mpls forwarding
H A Dindex.rst74 mpls-sysctl
H A Dpktgen.rst197 pgset "mpls 0001000a,0002000a,0000000a" set MPLS labels (in this example
211 pgset "mpls 0" turn off mpls (or any invalid argument works too!)
342 mpls
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_flow.c395 struct mpls_label *mpls, _mpls; in PROG() local
397 mpls = bpf_flow_dissect_get_header(skb, sizeof(*mpls), &_mpls); in PROG()
398 if (!mpls) in PROG()
/linux/include/net/
H A Dflow_dissector.h95 static inline void dissector_set_mpls_lse(struct flow_dissector_key_mpls *mpls, in dissector_set_mpls_lse() argument
98 mpls->used_lses |= 1 << lse_index; in dissector_set_mpls_lse()
H A Dnet_namespace.h179 struct netns_mpls mpls; member
/linux/net/openvswitch/
H A Dactions.c27 #include <net/mpls.h>
179 flow_key->mpls.lse[0] = lse; in set_mpls()
1314 struct ovs_action_push_mpls *mpls = nla_data(a); in do_execute_actions()
1316 err = push_mpls(skb, key, mpls->mpls_lse, in do_execute_actions()
1317 mpls->mpls_ethertype, skb->mac_len); in do_execute_actions()
1321 struct ovs_action_add_mpls *mpls = nla_data(a); in do_execute_actions()
1324 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) in do_execute_actions()
1327 err = push_mpls(skb, key, mpls->mpls_lse, in do_execute_actions()
1328 mpls->mpls_ethertype, mac_len); in do_execute_actions()
1313 struct ovs_action_push_mpls *mpls = nla_data(a); do_execute_actions() local
1320 struct ovs_action_add_mpls *mpls = nla_data(a); do_execute_actions() local
H A Dflow_netlink.c1647 SW_FLOW_KEY_PUT(match, mpls.lse[i], in ovs_key_from_nlattrs()
1650 SW_FLOW_KEY_PUT(match, mpls.num_labels_mask, in ovs_key_from_nlattrs()
2145 num_labels = hweight_long(output->mpls.num_labels_mask); in __ovs_nla_put_key()
2153 mpls_key[i].mpls_lse = output->mpls.lse[i]; in __ovs_nla_put_key()
3259 const struct ovs_action_add_mpls *mpls = nla_data(a); in __ovs_nla_copy_actions() local
3261 if (!eth_p_mpls(mpls->mpls_ethertype)) in __ovs_nla_copy_actions()
3264 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) { in __ovs_nla_copy_actions()
3281 eth_type = mpls->mpls_ethertype; in __ovs_nla_copy_actions()
3286 const struct ovs_action_push_mpls *mpls = nla_data(a); in __ovs_nla_copy_actions() local
3288 if (!eth_p_mpls(mpls->mpls_ethertype)) in __ovs_nla_copy_actions()
[all …]
H A Dflow.h153 } mpls; member
/linux/Documentation/translations/zh_CN/networking/
H A Dindex.rst98 * mpls-sysctl
/linux/net/
H A DMakefile67 obj-$(CONFIG_MPLS) += mpls/
H A DKconfig278 source "net/mpls/Kconfig"
450 tunnels like mpls. There is no netdevice associated with a light
/linux/net/sched/
H A Dact_mpls.c256 mpls_ttl = net->mpls.default_ttl ? in tcf_mpls_init()
257 net->mpls.default_ttl : ACT_MPLS_TTL_DEFAULT; in tcf_mpls_init()
H A Dcls_flower.c19 #include <linux/mpls.h>
71 struct flow_dissector_key_mpls mpls;
1995 ret = fl_set_key_mpls(tb, &key->mpls, &mask->mpls, extack); in fl_set_key()
2190 FLOW_DISSECTOR_KEY_MPLS, mpls); in fl_init_dissector()
3467 if (fl_dump_key_mpls(skb, &key->mpls, &mask->mpls)) in fl_dump_key()
75 struct flow_dissector_key_mpls mpls; global() member
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/
H A Ddr_ste.h127 void DR_STE_CTX_BUILDER(mpls);
/linux/net/wireless/
H A Dutil.c19 #include <linux/mpls.h>
974 struct mpls_label mpls_tmp, *mpls; in cfg80211_classify8021d()
976 mpls = skb_header_pointer(skb, sizeof(struct ethhdr), in cfg80211_classify8021d()
977 sizeof(*mpls), &mpls_tmp); in cfg80211_classify8021d()
978 if (!mpls) in cfg80211_classify8021d()
981 ret = (ntohl(mpls->entry) & MPLS_LS_TC_MASK) in cfg80211_classify8021d()
973 struct mpls_label mpls_tmp, *mpls; cfg80211_classify8021d() local