/linux-master/include/linux/ |
H A D | mpls.h | 5 #include <uapi/linux/mpls.h>
|
/linux-master/include/net/ |
H A D | mpls.h | 11 #include <linux/mpls.h>
|
H A D | flow_dissector.h | 82 static inline void dissector_set_mpls_lse(struct flow_dissector_key_mpls *mpls, argument 85 mpls->used_lses |= 1 << lse_index;
|
H A D | net_namespace.h | 34 #include <net/netns/mpls.h> 173 struct netns_mpls mpls; member in struct:net
|
/linux-master/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 ls [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun_mplsoudp.c | 5 #include <net/mpls.h> 35 struct mpls_shim_hdr *mpls; local 37 mpls = (struct mpls_shim_hdr *)(udp + 1); 41 *mpls = mpls_entry_encode(mpls_info->label, mpls_info->ttl, mpls_info->tc, mpls_info->bos);
|
/linux-master/net/mpls/ |
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) 81 ttl = net->mpls.default_ttl; 89 !net->mpls.ip_ttl_propagate) 90 ttl = net->mpls.default_ttl;
|
H A D | af_mpls.c | 10 #include <linux/mpls.h> 82 if (index < net->mpls.platform_labels) { 84 rcu_dereference(net->mpls.platform_label); 305 net->mpls.ip_ttl_propagate)) 327 net->mpls.ip_ttl_propagate)) 562 platform_label = rtnl_dereference(net->mpls.platform_label); 578 platform_label = rtnl_dereference(net->mpls.platform_label); 579 platform_labels = net->mpls.platform_labels; 953 if (is_ok && *index >= net->mpls.platform_labels) { 959 *index = array_index_nospec(*index, net->mpls [all...] |
H A D | mpls_gso.c | 18 #include <net/mpls.h>
|
H A D | internal.h | 4 #include <net/mpls.h>
|
/linux-master/tools/testing/selftests/net/ |
H A D | bareudp.sh | 268 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-master/tools/testing/selftests/bpf/ |
H A D | test_tc_tunnel.sh | 118 for mac in none mpls eth ; do 150 echo " or: $0 <ipv4|ipv6> <tuntype> <none|mpls|eth> <data_len>" 215 if [[ "$mac" == "mpls" ]]; then 258 if [[ "$tuntype" == "ip6udp" && "$mac" == "mpls" ]]; then 269 elif [[ "$mac" == "mpls" ]]; then 272 ip netns exec "${ns2}" sysctl -qw net.mpls.platform_labels=65536 273 ip netns exec "${ns2}" ip -f mpls route add 1000 dev lo 275 ip netns exec "${ns2}" sysctl -qw net.mpls.conf.testtun0.input=1
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | bpf_flow.c | 18 #include <linux/mpls.h> 395 struct mpls_label *mpls, _mpls; local 397 mpls = bpf_flow_dissect_get_header(skb, sizeof(*mpls), &_mpls); 398 if (!mpls)
|
/linux-master/net/ |
H A D | Makefile | 71 obj-$(CONFIG_MPLS) += mpls/
|
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 427 &ib_spec->mpls.mask.tag)) 432 &ib_spec->mpls.val.tag, 433 sizeof(ib_spec->mpls.val.tag)); 436 &ib_spec->mpls.mask.tag, 437 sizeof(ib_spec->mpls.mask.tag)); 442 &ib_spec->mpls.mask.tag)) 447 &ib_spec->mpls.val.tag, 448 sizeof(ib_spec->mpls.val.tag)); 451 &ib_spec->mpls.mask.tag, 452 sizeof(ib_spec->mpls [all...] |
/linux-master/net/sched/ |
H A D | act_mpls.c | 8 #include <linux/mpls.h> 12 #include <net/mpls.h> 65 /* Ensure 'data' points at mac_header prior calling mpls manipulating 258 mpls_ttl = net->mpls.default_ttl ? 259 net->mpls.default_ttl : ACT_MPLS_TTL_DEFAULT; 445 .kind = "mpls", 455 MODULE_ALIAS_NET_ACT("mpls");
|
/linux-master/net/openvswitch/ |
H A D | flow.c | 23 #include <linux/mpls.h> 34 #include <net/mpls.h> 792 memset(&key->mpls, 0, sizeof(key->mpls)); 805 memcpy(&key->mpls.lse[label_count - 1], &lse, 818 key->mpls.num_labels_mask = GENMASK(label_count - 1, 0);
|
H A D | actions.c | 26 #include <net/mpls.h> 214 flow_key->mpls.lse[0] = lse; 1360 struct ovs_action_push_mpls *mpls = nla_data(a); local 1362 err = push_mpls(skb, key, mpls->mpls_lse, 1363 mpls->mpls_ethertype, skb->mac_len); 1367 struct ovs_action_add_mpls *mpls = nla_data(a); local 1370 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) 1373 err = push_mpls(skb, key, mpls->mpls_lse, 1374 mpls->mpls_ethertype, mac_len);
|
H A D | flow.h | 153 } mpls; member in union:sw_flow_key::__anon4685
|
H A D | flow_netlink.c | 36 #include <net/mpls.h> 1671 SW_FLOW_KEY_PUT(match, mpls.lse[i], 1674 SW_FLOW_KEY_PUT(match, mpls.num_labels_mask, 2169 num_labels = hweight_long(output->mpls.num_labels_mask); 2177 mpls_key[i].mpls_lse = output->mpls.lse[i]; 3272 const struct ovs_action_add_mpls *mpls = nla_data(a); local 3274 if (!eth_p_mpls(mpls->mpls_ethertype)) 3277 if (mpls->tun_flags & OVS_MPLS_L3_TUNNEL_FLAG_MASK) { 3294 eth_type = mpls->mpls_ethertype; 3299 const struct ovs_action_push_mpls *mpls local [all...] |
/linux-master/samples/bpf/ |
H A D | sockex3_kern.c | 14 #include <uapi/linux/mpls.h>
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_ste.h | 127 void DR_STE_CTX_BUILDER(mpls);
|
/linux-master/net/ipv4/ |
H A D | tunnel4.c | 10 #include <linux/mpls.h>
|
/linux-master/net/core/ |
H A D | pktgen.c | 637 seq_puts(seq, " mpls: "); 1648 if (!strcmp(name, "mpls")) { 1655 cnt = sprintf(pg_result, "OK: mpls="); 2754 static void mpls_push(__be32 *mpls, struct pktgen_dev *pkt_dev) argument 2758 *mpls++ = pkt_dev->labels[i] & ~MPLS_STACK_BOTTOM; 2760 mpls--; 2761 *mpls |= MPLS_STACK_BOTTOM; 2888 __be32 *mpls; local 2918 mpls = skb_put(skb, pkt_dev->nr_labels * sizeof(__u32)); 2920 mpls_push(mpls, pkt_de 3016 __be32 *mpls; local [all...] |