| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | tc_mpls_l2vpn.sh | 84 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 D | tc_flower.sh | 556 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 D | lib.sh | 174 # Old versions of tc produce invalid json output for mpls lse statistics 181 flower mpls lse depth 2 \
|
| /linux/tools/testing/selftests/net/ |
| H A D | bareudp.sh | 236 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/net/mpls/ |
| H A D | af_mpls.c | 10 #include <linux/mpls.h> 82 platform_label = mpls_dereference(net, net->mpls.platform_label); in mpls_route_input_rcu() 90 if (index >= net->mpls.platform_labels) in mpls_output_possible() 93 platform_label = rcu_dereference(net->mpls.platform_label); in mpls_output_possible() 313 net->mpls.ip_ttl_propagate)) in mpls_egress() 335 net->mpls.ip_ttl_propagate)) in mpls_egress() 581 platform_label = mpls_dereference(net, net->mpls.platform_label); in find_free_label() 596 index < net->mpls.platform_labels; in inet_fib_lookup_dev() 970 if (*index >= net->mpls.platform_labels) { in mpls_route_add() 976 *index = array_index_nospec(*index, net->mpls in mpls_route_add() [all...] |
| H A D | mpls_iptunnel.c | 3 * 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 D | Kconfig | 31 Add support for forwarding of mpls packets. 37 mpls ip tunnel support.
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tc_tun_mplsoudp.c | 35 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 D | test_tc_tunnel.sh | |
| /linux/Documentation/networking/ |
| H A D | mpls-sysctl.rst | 7 /proc/sys/net/mpls/* Variables: 20 label will be recognized by the kernel and mpls forwarding
|
| H A D | pktgen.rst | 197 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 D | bpf_flow.c | 395 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/drivers/infiniband/hw/mlx5/ |
| H A D | fs.c | 433 &ib_spec->mpls.mask.tag)) in parse_flow_attr() 438 &ib_spec->mpls.val.tag, in parse_flow_attr() 439 sizeof(ib_spec->mpls.val.tag)); in parse_flow_attr() 442 &ib_spec->mpls.mask.tag, in parse_flow_attr() 443 sizeof(ib_spec->mpls.mask.tag)); in parse_flow_attr() 448 &ib_spec->mpls.mask.tag)) in parse_flow_attr() 453 &ib_spec->mpls.val.tag, in parse_flow_attr() 454 sizeof(ib_spec->mpls.val.tag)); in parse_flow_attr() 457 &ib_spec->mpls.mask.tag, in parse_flow_attr() 458 sizeof(ib_spec->mpls.mask.tag)); in parse_flow_attr() [all …]
|
| /linux/include/net/ |
| H A D | flow_dissector.h | 95 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 D | net_namespace.h | 177 struct netns_mpls mpls; member
|
| /linux/net/openvswitch/ |
| H A D | actions.c | 178 flow_key->mpls.lse[0] = lse; in set_mpls() 1313 struct ovs_action_push_mpls *mpls = nla_data(a); in do_execute_actions() local 1315 err = push_mpls(skb, key, mpls->mpls_lse, in do_execute_actions() 1316 mpls->mpls_ethertype, skb->mac_len); in do_execute_actions() 1320 struct ovs_action_add_mpls *mpls = nla_data(a); in do_execute_actions() local 1323 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) in do_execute_actions() 1326 err = push_mpls(skb, key, mpls->mpls_lse, in do_execute_actions() 1327 mpls->mpls_ethertype, mac_len); in do_execute_actions()
|
| H A D | flow_netlink.c | 36 #include <net/mpls.h> 1647 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() 3257 const struct ovs_action_add_mpls *mpls = nla_data(a); in __ovs_nla_copy_actions() 3259 if (!eth_p_mpls(mpls->mpls_ethertype)) in __ovs_nla_copy_actions() 3262 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) { in __ovs_nla_copy_actions() 3279 eth_type = mpls->mpls_ethertype; in __ovs_nla_copy_actions() 3284 const struct ovs_action_push_mpls *mpls in __ovs_nla_copy_actions() 3250 const struct ovs_action_add_mpls *mpls = nla_data(a); __ovs_nla_copy_actions() local 3277 const struct ovs_action_push_mpls *mpls = nla_data(a); __ovs_nla_copy_actions() local [all...] |
| H A D | flow.h | 153 } mpls; member
|
| /linux/Documentation/translations/zh_CN/networking/ |
| H A D | index.rst | 99 * mpls-sysctl
|
| /linux/net/sched/ |
| H A D | act_mpls.c | 256 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 D | cls_flower.c | 19 #include <linux/mpls.h> 75 struct flow_dissector_key_mpls mpls; member 1999 ret = fl_set_key_mpls(tb, &key->mpls, &mask->mpls, extack); in fl_set_key() 2194 FLOW_DISSECTOR_KEY_MPLS, mpls); in fl_init_dissector() 3471 if (fl_dump_key_mpls(skb, &key->mpls, &mask->mpls)) in fl_dump_key()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_ste.h | 127 void DR_STE_CTX_BUILDER(mpls);
|
| /linux/include/rdma/ |
| H A D | ib_verbs.h | 2119 struct ib_flow_spec_mpls mpls; member
|