| /tools/testing/selftests/bpf/progs/ |
| A D | test_cls_redirect_dynptr.c | 276 sizeof(*encap) + in accept_locally() 298 sizeof(*encap) + in forward_with_gre() 431 memcpy(encap->eth.h_dest, encap->eth.h_source, in forward_to_next_hop() 433 memcpy(encap->eth.h_source, temp, sizeof(encap->eth.h_source)); in forward_to_next_hop() 435 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 442 encap->ip.saddr = encap->ip.daddr; in forward_to_next_hop() 444 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 480 if (encap->unigue.next_hop > encap->unigue.hop_count) in get_next_hop() 486 if (encap->unigue.next_hop == encap->unigue.hop_count) { in get_next_hop() 869 if (!encap) in cls_redirect() [all …]
|
| A D | test_cls_redirect.c | 384 sizeof(*encap) + in accept_locally() 408 sizeof(*encap) + in forward_with_gre() 539 memcpy(encap->eth.h_dest, encap->eth.h_source, in forward_to_next_hop() 541 memcpy(encap->eth.h_source, temp, sizeof(encap->eth.h_source)); in forward_to_next_hop() 543 if (encap->unigue.next_hop == encap->unigue.hop_count - 1 && in forward_to_next_hop() 550 encap->ip.saddr = encap->ip.daddr; in forward_to_next_hop() 552 if (encap->unigue.next_hop < encap->unigue.hop_count) { in forward_to_next_hop() 589 if (encap->unigue.next_hop > encap->unigue.hop_count) { in get_next_hop() 596 if (encap->unigue.next_hop == encap->unigue.hop_count) { in get_next_hop() 966 encap = buf_assign(&pkt, sizeof(*encap), NULL); in cls_redirect() [all …]
|
| A D | test_tunnel_kern.c | 42 struct bpf_fou_encap *encap, int type) __ksym; 44 struct bpf_fou_encap *encap) __ksym; 760 struct bpf_fou_encap___local encap = {}; in ipip_gue_set_tunnel() local 781 encap.sport = 0; in ipip_gue_set_tunnel() 782 encap.dport = bpf_htons(5555); in ipip_gue_set_tunnel() 799 struct bpf_fou_encap___local encap = {}; in ipip_fou_set_tunnel() local 820 encap.sport = 0; in ipip_fou_set_tunnel() 821 encap.dport = bpf_htons(5555); in ipip_fou_set_tunnel() 838 struct bpf_fou_encap___local encap = {}; in ipip_encap_get_tunnel() local 852 if (bpf_ntohs(encap.dport) != 5555) in ipip_encap_get_tunnel() [all …]
|
| /tools/testing/selftests/net/ |
| A D | lwt_dst_cache_ref_loop.sh | 54 encap ila 1:2:3:4 csum-mode no-action ident-type luid \ 59 encap ioam6 trace prealloc type 0x800000 ns 0 size 4 \ 63 encap rpl segs 2001:db8:3::1 dev veth0 &>/dev/null 66 encap seg6 mode inline segs 2001:db8:4::1 dev veth0 &>/dev/null 146 encap ila 2001:db8:2:0 csum-mode no-action ident-type luid \ 168 encap ioam6 trace prealloc type 0x800000 ns 1 size 4 \ 186 encap rpl segs 2001:db8:2::2 \ 208 encap seg6 mode inline segs 2001:db8:2::2 \
|
| A D | srv6_hencap_red_l3vpn_test.sh | 388 encap seg6local action End dev "${VRF_DEVNAME}" 394 encap seg6local action End.DT46 vrftable "${VRF_TID}" \ 447 encap seg6 mode "${mode}" segs "${policy}" \ 458 encap seg6 mode "${mode}" segs "${policy}" \ 576 setup_rt_policy_ipv6 2 1 "3 4" 2 encap.red 577 setup_rt_policy_ipv6 1 2 "" 1 encap.red 589 setup_rt_policy_ipv4 2 1 "" 2 encap.red 590 setup_rt_policy_ipv4 1 2 "4 3" 1 encap.red 603 setup_rt_policy_ipv6 4 3 "2" 4 encap.red 604 setup_rt_policy_ipv6 3 4 "1" 3 encap.red
|
| A D | ioam6.sh | 693 encap ioam6 mode $mode trace prealloc type 0x800000 size 4 \ 699 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 734 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 774 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 811 encap ioam6 mode $mode trace prealloc ns 0 size 4 \ 817 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 842 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 \ 848 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size 4 \ 911 encap ioam6 mode $mode trace prealloc type 0x800000 ns 0 size $i \ 1124 encap ioam6 mode $mode trace prealloc \ [all …]
|
| A D | pmtu.sh | 410 encap="${3}" 439 …cmd ${ns_a} ip link add ${encap}_a type ${type} ${mode} local ${a_addr} remote ${b_addr} encap ${e… 442 …cmd ${ns_b} ip link add ${encap}_b type ${type} ${mode} local ${b_addr} remote ${a_addr} encap ${e… 452 run_cmd ${ns_a} ip link set ${encap}_a up 453 run_cmd ${ns_b} ip link set ${encap}_b up 679 encap=${4} 1626 encap=${3} 1630 trace "${ns_a}" ${encap}_a "${ns_b}" ${encap}_b \ 1642 if [ "${encap}" = "gue" ]; then 2111 encap="vxlan" [all …]
|
| A D | srv6_end_dt46_l3vpn_test.sh | 333 encap seg6 mode encap segs ${vpn_sid} dev veth0 335 encap seg6 mode encap segs ${vpn_sid} dev veth0 342 encap seg6local action End.DT46 vrftable ${tid} dev vrf-${tid}
|
| A D | srv6_end_dx4_netfilter_test.sh | 248 encap seg6 mode encap segs ${vpn_sid} dev veth0 255 encap seg6local action End.DX4 nh4 ${IPv4_HS_NETWORK}.${hsdst} dev veth-t${tid}
|
| A D | srv6_end_dx6_netfilter_test.sh | 253 encap seg6 mode encap segs ${vpn_sid} dev veth0 260 encap seg6local action End.DX6 nh6 ${IPv6_HS_NETWORK}::${hsdst} dev veth-t${tid}
|
| A D | srv6_end_x_next_csid_l3vpn_test.sh | 613 encap seg6local action End.X nh6 "${net_prefix}::${adj}" \ 634 encap seg6local action End.X nh6 "${nh6_ll_addr}" \ 755 encap seg6 mode "${HEADEND_ENCAP}" segs "${policy}" \ 766 encap seg6 mode "${HEADEND_ENCAP}" segs "${policy}" \ 775 encap seg6local action End.DT46 vrftable "${VRF_TID}" \ 1088 encap seg6local action End.X nh6 :: \
|
| A D | srv6_end_dt4_l3vpn_test.sh | 289 encap seg6 mode encap segs ${vpn_sid} dev veth0 296 encap seg6local action End.DT4 vrftable ${tid} dev vrf-${tid}
|
| A D | srv6_end_next_csid_l3vpn_test.sh | 592 encap seg6local action End flavors next-csid \ 668 encap seg6 mode "${HEADEND_ENCAP}" segs "${policy}" \ 679 encap seg6 mode "${HEADEND_ENCAP}" segs "${policy}" \ 688 encap seg6local action End.DT46 vrftable "${VRF_TID}" \ 973 encap seg6local action End flavors next-csid ${layout} \
|
| A D | srv6_end_flavors_test.sh | 479 encap seg6local action End dev "${DUMMY_DEVNAME}" 553 encap seg6local action ${behavior_cfg} \ 565 encap seg6 mode inline segs "${policy}" \ 806 add "${IPv6_TESTS_ADDR}" encap seg6local \
|
| A D | srv6_hl2encap_red_l2vpn_test.sh | 343 encap seg6local action End dev "${DUMMY_DEVNAME}" 386 encap seg6 mode "${mode}" segs "${policy}" \ 391 encap seg6 mode "${mode}" segs "${policy}" \ 419 encap seg6local action End.DX2 oif "${RT2HS_DEVNAME}" \
|
| A D | srv6_end_dt6_l3vpn_test.sh | 299 encap seg6 mode encap segs ${vpn_sid} dev veth0 306 encap seg6local action End.DT6 vrftable ${tid} dev vrf-${tid}
|
| A D | l2tp.sh | 143 encap ip local 10.1.1.1 remote 10.1.2.1 153 encap ip local 10.1.2.1 remote 10.1.1.1 172 encap ip local 2001:db8:1::1 remote 2001:db8:2::1 182 encap ip local 2001:db8:2::1 remote 2001:db8:1::1
|
| A D | fib_tests.sh | 674 nexthop encap ip6 dst 2002::20 via 2001:20::2 dev dummy_20 \ 675 nexthop encap ip6 dst 2002::30 via 2001:30::2 dev dummy_30 \ 676 nexthop encap ip6 dst 2002::40 via 2001:40::2 dev dummy_40 \ 677 nexthop encap ip6 dst 2002::50 via 2001:50::2 dev dummy_50 \ 678 nexthop encap ip6 dst 2002::60 via 2001:60::2 dev dummy_60 \ 679 nexthop encap ip6 dst 2002::70 via 2001:70::2 dev dummy_70 721 nexthop encap ip dst 192.168.10.20 via 20.20.20.1 dev dummy_20 \ 722 nexthop encap ip dst 192.168.10.30 via 20.20.30.1 dev dummy_30 \ 723 nexthop encap ip dst 192.168.10.40 via 20.20.40.1 dev dummy_40 \ 724 nexthop encap ip dst 192.168.10.50 via 20.20.50.1 dev dummy_50 \ [all …]
|
| 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
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | cls_redirect.c | 218 static void encap_init(encap_headers_t *encap, uint8_t hop_count, uint8_t proto) in encap_init() argument 222 *encap = (encap_headers_t){ in encap_init() 248 encap_headers_t encap; in build_input() local 261 encap_init(&encap, test->hops == ONE_HOP ? 1 : 0, proto); in build_input() 262 p = mempcpy(p, &encap, sizeof(encap)); in build_input()
|
| A D | test_tunnel.c | 254 static int add_ipip_tunnel(enum ipip_encap encap) in add_ipip_tunnel() argument 259 switch (encap) { in add_ipip_tunnel() 731 static void test_ipip_tunnel(enum ipip_encap encap) in test_ipip_tunnel() argument 738 err = add_ipip_tunnel(encap); in test_ipip_tunnel() 747 switch (encap) { in test_ipip_tunnel()
|
| /tools/testing/selftests/net/forwarding/ |
| A D | ipip_lib.sh | 335 local encap=$1; shift 340 check_fail $? "ping $encap should not pass with size 1800" 347 log_test "ping $encap packet size 1800 after MTU change"
|
| /tools/testing/selftests/drivers/net/mlxsw/ |
| A D | rtnetlink.sh | 615 ip nexthop add id 1 encap mpls 200/300 via 192.0.2.3 dev $swp1
|