Home
last modified time | relevance | path

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

12345678910>>...21

/linux/net/mpls/
A Daf_mpls.c81 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()
2591 net->mpls.platform_labels = limit; in resize_platform_label_table()
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()
2689 if (net->mpls.ctl == NULL) { in mpls_net_init()
[all …]
A Dmpls_iptunnel.c82 !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()
A DKconfig31 Add support for forwarding of mpls packets.
37 mpls ip tunnel support.
/linux/tools/testing/selftests/net/forwarding/
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 \
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 …]
/linux/tools/testing/selftests/net/
A Dbareudp.sh268 ip -netns "${NS0}" route add 2001:db8::203/128 src 2001:db8::200 encap mpls 203 via 2001:db8::11
269 ip -netns "${NS3}" route add 2001:db8::200/128 src 2001:db8::203 encap mpls 200 via 2001:db8::32
273 ip netns exec "${NS1}" sysctl -qw net.mpls.platform_labels=256
274 ip netns exec "${NS2}" sysctl -qw net.mpls.platform_labels=256
275 ip -netns "${NS1}" -family mpls route add 200 via inet6 2001:db8::10
276 ip -netns "${NS2}" -family mpls route add 203 via inet6 2001:db8::33
426 ip netns exec "${NS1}" sysctl -qw net.mpls.conf.bareudp_ns1.input=1
427 ip netns exec "${NS2}" sysctl -qw net.mpls.conf.bareudp_ns2.input=1
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
A Dtc_tun_mplsoudp.c34 struct mpls_shim_hdr *mpls; in generate_ip_tun_hdr() local
38 mpls = (struct mpls_shim_hdr *)(udp + 1); in generate_ip_tun_hdr()
42 *mpls = mpls_entry_encode(tun_id, tun_key->ttl, tun_key->tos, true); in generate_ip_tun_hdr()
/linux/tools/testing/selftests/bpf/
A Dtest_tc_tunnel.sh114 for mac in none mpls eth ; do
262 ip netns exec "${ns2}" sysctl -qw net.mpls.platform_labels=65536
263 ip netns exec "${ns2}" ip -f mpls route add 1000 dev lo
265 ip netns exec "${ns2}" sysctl -qw net.mpls.conf.testtun0.input=1
/linux/drivers/infiniband/hw/mlx5/
A Dfs.c446 &ib_spec->mpls.mask.tag)) in parse_flow_attr()
451 &ib_spec->mpls.val.tag, in parse_flow_attr()
455 &ib_spec->mpls.mask.tag, in parse_flow_attr()
461 &ib_spec->mpls.mask.tag)) in parse_flow_attr()
466 &ib_spec->mpls.val.tag, in parse_flow_attr()
470 &ib_spec->mpls.mask.tag, in parse_flow_attr()
477 &ib_spec->mpls.mask.tag)) in parse_flow_attr()
482 &ib_spec->mpls.val.tag, in parse_flow_attr()
486 &ib_spec->mpls.mask.tag, in parse_flow_attr()
491 &ib_spec->mpls.mask.tag)) in parse_flow_attr()
[all …]
/linux/Documentation/networking/
A Dmpls-sysctl.rst7 /proc/sys/net/mpls/* Variables:
20 label will be recognized by the kernel and mpls forwarding
A Dindex.rst73 mpls-sysctl
A Dpktgen.rst196 pgset "mpls 0001000a,0002000a,0000000a" set MPLS labels (in this example
210 pgset "mpls 0" turn off mpls (or any invalid argument works too!)
331 mpls
/linux/tools/testing/selftests/bpf/progs/
A Dbpf_flow.c380 struct mpls_label *mpls, _mpls; in PROG() local
382 mpls = bpf_flow_dissect_get_header(skb, sizeof(*mpls), &_mpls); in PROG()
383 if (!mpls) in PROG()
/linux/include/net/
A Dflow_dissector.h77 static inline void dissector_set_mpls_lse(struct flow_dissector_key_mpls *mpls, in dissector_set_mpls_lse() argument
80 mpls->used_lses |= 1 << lse_index; in dissector_set_mpls_lse()
A Dnet_namespace.h161 struct netns_mpls mpls; member
/linux/net/openvswitch/
A Dactions.c212 flow_key->mpls.lse[0] = lse; in set_mpls()
1297 struct ovs_action_push_mpls *mpls = nla_data(a); in do_execute_actions() local
1299 err = push_mpls(skb, key, mpls->mpls_lse, in do_execute_actions()
1300 mpls->mpls_ethertype, skb->mac_len); in do_execute_actions()
1304 struct ovs_action_add_mpls *mpls = nla_data(a); in do_execute_actions() local
1307 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) in do_execute_actions()
1310 err = push_mpls(skb, key, mpls->mpls_lse, in do_execute_actions()
1311 mpls->mpls_ethertype, mac_len); in do_execute_actions()
A Dflow.c648 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()
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()
2137 num_labels = hweight_long(output->mpls.num_labels_mask); in __ovs_nla_put_key()
2145 mpls_key[i].mpls_lse = output->mpls.lse[i]; in __ovs_nla_put_key()
3139 const struct ovs_action_add_mpls *mpls = nla_data(a); in __ovs_nla_copy_actions() local
3141 if (!eth_p_mpls(mpls->mpls_ethertype)) in __ovs_nla_copy_actions()
3144 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) { in __ovs_nla_copy_actions()
3161 eth_type = mpls->mpls_ethertype; in __ovs_nla_copy_actions()
3166 const struct ovs_action_push_mpls *mpls = nla_data(a); in __ovs_nla_copy_actions() local
3168 if (!eth_p_mpls(mpls->mpls_ethertype)) in __ovs_nla_copy_actions()
[all …]
A Dflow.h139 } mpls; member
/linux/net/
A DMakefile72 obj-$(CONFIG_MPLS) += mpls/
/linux/net/sched/
A Dact_mpls.c224 mpls_ttl = net->mpls.default_ttl ? in tcf_mpls_init()
225 net->mpls.default_ttl : ACT_MPLS_TTL_DEFAULT; in tcf_mpls_init()
A Dcls_flower.c60 struct flow_dissector_key_mpls mpls; member
1622 ret = fl_set_key_mpls(tb, &key->mpls, &mask->mpls, extack); in fl_set_key()
1793 FLOW_DISSECTOR_KEY_MPLS, mpls); in fl_init_dissector()
2870 if (fl_dump_key_mpls(skb, &key->mpls, &mask->mpls)) in fl_dump_key()
/linux/net/wireless/
A Dutil.c869 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()
/linux/net/core/
A Dpktgen.c2737 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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
A Ddr_ste.h127 void DR_STE_CTX_BUILDER(mpls);

Completed in 52 milliseconds

12345678910>>...21