/tools/testing/selftests/drivers/net/mlxsw/ |
D | rtnetlink.sh | 44 ip link set dev $swp1 up 45 ip link set dev $swp2 up 52 ip link set dev $swp2 down 53 ip link set dev $swp1 down 72 ip link set dev $swp1 addr 00:11:22:33:44:55 83 ip link set dev $swp2 addr 00:11:22:33:44:66 90 ip link set dev $swp2 addr 00:11:22:33:00:66 &>/dev/null 92 ip link set dev $swp2 addr 00:11:22:33:00:66 2>&1 >/dev/null \ 101 ip link set dev $swp2 addr $swp2_mac 102 ip link set dev $swp1 addr $swp1_mac [all …]
|
D | extack.sh | 22 ip link set dev $swp1 up 23 ip link set dev $swp2 up 30 ip link set dev $swp2 down 31 ip link set dev $swp1 down 38 ip link add name br1 up type bridge vlan_filtering 0 mcast_snooping 0 39 ip link add name vx1 up type vxlan id 1000 \ 43 ip link set dev vx1 master br1 46 ip link set dev $swp1 master br1 49 ip link add name br2 up type bridge vlan_filtering 0 mcast_snooping 0 50 ip link add name vx2 up type vxlan id 2000 \ [all …]
|
D | vxlan.sh | 20 ip link set dev $swp1 up 21 ip link set dev $swp2 up 28 ip link set dev $swp2 down 29 ip link set dev $swp1 down 34 ip link set dev $swp1 master br0 36 ip link set dev vxlan0 master br0 39 ip link set dev $swp1 nomaster 41 ip link set dev $swp1 master br0 47 ip link set dev $swp1 master br0 49 ip link set dev vxlan0 master br0 &> /dev/null [all …]
|
/tools/testing/selftests/bpf/prog_tests/ |
D | link_pinning.c | 16 struct bpf_link *link; in test_link_pinning_subtest() local 19 link = bpf_program__attach(prog); in test_link_pinning_subtest() 20 if (CHECK(IS_ERR(link), "link_attach", "err: %ld\n", PTR_ERR(link))) in test_link_pinning_subtest() 28 err = bpf_link__pin(link, link_pin_path); in test_link_pinning_subtest() 32 CHECK(strcmp(link_pin_path, bpf_link__pin_path(link)), "pin_path1", in test_link_pinning_subtest() 33 "exp %s, got %s\n", link_pin_path, bpf_link__pin_path(link)); in test_link_pinning_subtest() 45 bpf_link__destroy(link); in test_link_pinning_subtest() 46 link = NULL; in test_link_pinning_subtest() 53 link = bpf_link__open(link_pin_path); in test_link_pinning_subtest() 54 if (CHECK(IS_ERR(link), "link_open", "err: %ld\n", PTR_ERR(link))) in test_link_pinning_subtest() [all …]
|
D | test_overhead.c | 68 struct bpf_link *link; in test_test_overhead() local 109 link = bpf_program__attach_kprobe(kprobe_prog, false /* retprobe */, in test_test_overhead() 111 if (CHECK(IS_ERR(link), "attach_kprobe", "err %ld\n", PTR_ERR(link))) in test_test_overhead() 114 bpf_link__destroy(link); in test_test_overhead() 117 link = bpf_program__attach_kprobe(kretprobe_prog, true /* retprobe */, in test_test_overhead() 119 if (CHECK(IS_ERR(link), "attach kretprobe", "err %ld\n", PTR_ERR(link))) in test_test_overhead() 122 bpf_link__destroy(link); in test_test_overhead() 125 link = bpf_program__attach_raw_tracepoint(raw_tp_prog, "task_rename"); in test_test_overhead() 126 if (CHECK(IS_ERR(link), "attach fentry", "err %ld\n", PTR_ERR(link))) in test_test_overhead() 129 bpf_link__destroy(link); in test_test_overhead() [all …]
|
D | trampoline_count.c | 52 struct bpf_link *link; in test_trampoline_count() local 70 link = load(inst[i].obj, fentry_name); in test_trampoline_count() 71 if (CHECK(IS_ERR(link), "attach prog", "err %ld\n", PTR_ERR(link))) { in test_trampoline_count() 72 link = NULL; in test_trampoline_count() 75 inst[i].link_fentry = link; in test_trampoline_count() 77 link = load(inst[i].obj, fexit_name); in test_trampoline_count() 78 if (CHECK(IS_ERR(link), "attach prog", "err %ld\n", PTR_ERR(link))) { in test_trampoline_count() 79 link = NULL; in test_trampoline_count() 82 inst[i].link_fexit = link; in test_trampoline_count() 98 link = load(obj, fentry_name); in test_trampoline_count() [all …]
|
D | flow_dissector_reattach.c | 128 if (CHECK_FAIL(link < 0)) { in test_link_create_link_create() 150 int err, link; in test_prog_attach_link_create() local 161 link = bpf_link_create(prog2, netns, BPF_FLOW_DISSECTOR, &opts); in test_prog_attach_link_create() 162 if (CHECK_FAIL(link != -1 || errno != EEXIST)) in test_prog_attach_link_create() 164 if (link != -1) in test_prog_attach_link_create() 165 close(link); in test_prog_attach_link_create() 177 int err, link; in test_link_create_prog_attach() local 179 link = bpf_link_create(prog1, netns, BPF_FLOW_DISSECTOR, &opts); in test_link_create_prog_attach() 180 if (CHECK_FAIL(link < 0)) { in test_link_create_prog_attach() 193 close(link); in test_link_create_prog_attach() [all …]
|
D | xdp_link.c | 16 struct bpf_link *link; in test_xdp_link() local 53 link = bpf_program__attach_xdp(skel1->progs.xdp_handler, IFINDEX_LO); in test_xdp_link() 54 if (CHECK(!IS_ERR(link), "link_attach_fail", "unexpected success\n")) { in test_xdp_link() 55 bpf_link__destroy(link); in test_xdp_link() 69 link = bpf_program__attach_xdp(skel1->progs.xdp_handler, IFINDEX_LO); in test_xdp_link() 70 if (CHECK(IS_ERR(link), "link_attach", "failed: %ld\n", PTR_ERR(link))) in test_xdp_link() 72 skel1->links.xdp_handler = link; in test_xdp_link() 97 link = bpf_program__attach_xdp(skel2->progs.xdp_handler, IFINDEX_LO); in test_xdp_link() 98 if (CHECK(!IS_ERR(link), "link_attach_fail", "unexpected success\n")) { in test_xdp_link() 99 bpf_link__destroy(link); in test_xdp_link() [all …]
|
/tools/testing/selftests/net/ |
D | ip6_gre_headroom.sh | 9 ip link add h1 type veth peer name swp1 10 ip link add h3 type veth peer name swp3 12 ip link set dev h1 up 15 ip link add dev vh3 type vrf table 20 16 ip link set dev h3 master vh3 17 ip link set dev vh3 up 18 ip link set dev h3 up 20 ip link set dev swp3 up 24 ip link set dev swp1 up 27 ip link add name er6 type ip6erspan \ [all …]
|
D | test_vxlan_under_vrf.sh | 49 ip link del veth-hv-1 2>/dev/null || true 50 ip link del veth-tap 2>/dev/null || true 65 ip link add veth-hv-1 type veth peer name veth-hv-2 70 ip link set veth-hv-$hv netns hv-$hv 71 ip -netns hv-$hv link set veth-hv-$hv name veth0 73 ip -netns hv-$hv link add vrf-underlay type vrf table 1 74 ip -netns hv-$hv link set vrf-underlay up 76 ip -netns hv-$hv link set veth0 up 78 ip -netns hv-$hv link add br0 type bridge 79 ip -netns hv-$hv link set br0 up [all …]
|
D | altnames.sh | 20 ip link property add $DUMMY_DEV altname $SHORT_NAME 23 output=$(ip -j -p link show $SHORT_NAME) 32 ip -j -p link show $DUMMY_DEV &>/dev/null 35 ip link property add $DUMMY_DEV altname $LONG_NAME 38 output=$(ip -j -p link show $LONG_NAME) 47 ip link property del $DUMMY_DEV altname $SHORT_NAME 50 ip -j -p link show $SHORT_NAME &>/dev/null 60 ip link add name $DUMMY_DEV type dummy 66 ip link del name $DUMMY_DEV
|
/tools/testing/selftests/net/forwarding/ |
D | vxlan_symmetric.sh | 122 ip link set dev $if_name master $vrf_name 123 ip link set dev $vrf_name up 124 ip link set dev $if_name up 144 ip link set dev $if_name down 170 ip link add name br1 type bridge vlan_filtering 1 vlan_default_pvid 0 \ 174 ip link set dev br1 address $(mac_get $swp1) 175 ip link set dev br1 up 177 ip link set dev $rp1 up 181 ip link add name vx10 type vxlan id 1010 \ 184 ip link set dev vx10 up [all …]
|
D | vxlan_asymmetric.sh | 112 ip link set dev $if_name master $vrf_name 113 ip link set dev $vrf_name up 114 ip link set dev $if_name up 134 ip link set dev $if_name down 160 ip link add name br1 type bridge vlan_filtering 1 vlan_default_pvid 0 \ 164 ip link set dev br1 address $(mac_get $swp1) 165 ip link set dev br1 up 167 ip link set dev $rp1 up 171 ip link add name vx10 type vxlan id 1000 \ 174 ip link set dev vx10 up [all …]
|
D | bridge_sticky_fdb.sh | 11 ip link add dev br0 type bridge 13 ip link set dev $swp1 master br0 14 ip link set dev $swp2 master br0 16 ip link set dev br0 up 17 ip link set dev $h1 up 18 ip link set dev $swp1 up 19 ip link set dev $h2 up 20 ip link set dev $swp2 up 25 ip link set dev $swp2 down 26 ip link set dev $h2 down [all …]
|
D | mirror_gre_bound.sh | 80 ip link set h3-gt4 vrf v$h3 84 ip link set h3-gt6 vrf v$h3 100 ip link add name br1 type bridge vlan_filtering 1 101 ip link set dev br1 up 103 ip link set dev $swp1 master br1 104 ip link set dev $swp1 up 106 ip link set dev $swp2 master br1 107 ip link set dev $swp2 up 115 ip link add name ul type dummy 116 ip link set dev ul master v$swp3 [all …]
|
D | mirror_topo_lib.sh | 60 ip link set dev $swp3 up 62 ip link add name br1 type bridge vlan_filtering 1 63 ip link set dev br1 up 65 ip link set dev $swp1 master br1 66 ip link set dev $swp1 up 68 ip link set dev $swp2 master br1 69 ip link set dev $swp2 up 78 ip link set dev $swp1 down 79 ip link set dev $swp2 down 80 ip link del dev br1 [all …]
|
D | bridge_port_isolation.sh | 41 ip link add dev br0 type bridge 43 ip link set dev $swp1 master br0 44 ip link set dev $swp2 master br0 45 ip link set dev $swp3 master br0 47 ip link set dev $swp1 type bridge_slave isolated on 49 ip link set dev $swp2 type bridge_slave isolated on 51 ip link set dev $swp3 type bridge_slave isolated off 54 ip link set dev br0 up 55 ip link set dev $swp1 up 56 ip link set dev $swp2 up [all …]
|
D | router_vid_1.sh | 11 ip link set dev vrf-h1 up 13 ip link set dev $h1 up 26 ip link set dev $h1 down 28 ip link set dev vrf-h1 down 35 ip link set dev vrf-h2 up 37 ip link set dev $h2 up 50 ip link set dev $h2 down 52 ip link set dev vrf-h2 down 58 ip link set dev $rp1 up 59 ip link add link $rp1 name $rp1.1 up type vlan id 1 [all …]
|
/tools/bpf/bpftool/Documentation/ |
D | bpftool-link.rst | 2 bpftool-link 13 **bpftool** [*OPTIONS*] **link** *COMMAND* 22 | **bpftool** **link { show | list }** [*LINK*] 23 | **bpftool** **link pin** *LINK* *FILE* 24 | **bpftool** **link detach** *LINK* 25 | **bpftool** **link help** 32 **bpftool link { show | list }** [*LINK*] 34 specified show information only about given link, 37 Output will start with link ID followed by link type and 39 of link. [all …]
|
/tools/testing/selftests/bpf/ |
D | test_lwt_seg6local.sh | 64 ip link add veth1 type veth peer name veth2 65 ip link add veth3 type veth peer name veth4 66 ip link add veth5 type veth peer name veth6 67 ip link add veth7 type veth peer name veth8 68 ip link add veth9 type veth peer name veth10 70 ip link set veth1 netns ns1 71 ip link set veth2 netns ns2 72 ip link set veth3 netns ns2 73 ip link set veth4 netns ns3 74 ip link set veth5 netns ns3 [all …]
|
D | test_xdp_veth.sh | 29 ip link del veth1 2> /dev/null 30 ip link del veth2 2> /dev/null 31 ip link del veth3 2> /dev/null 61 if ! ip link set dev lo xdp off > /dev/null 2>&1; then 84 ip link add veth1 index 111 type veth peer name veth11 netns ns1 85 ip link add veth2 index 122 type veth peer name veth22 netns ns2 86 ip link add veth3 index 133 type veth peer name veth33 netns ns3 88 ip link set veth1 up 89 ip link set veth2 up 90 ip link set veth3 up [all …]
|
D | test_xdp_redirect.sh | 23 ip link add veth1 index 111 type veth peer name veth11 netns ns1 24 ip link add veth2 index 222 type veth peer name veth22 netns ns2 26 ip link set veth1 up 27 ip link set veth2 up 28 ip -n ns1 link set dev veth11 up 29 ip -n ns2 link set dev veth22 up 37 ip link del veth1 2> /dev/null 38 ip link del veth2 2> /dev/null 49 ip link set dev veth1 $xdpmode off &> /dev/null 55 ip -n ns1 link set veth11 $xdpmode obj xdp_dummy.o sec xdp_dummy &> /dev/null [all …]
|
D | test_tunnel.sh | 57 ip link add veth0 type veth peer name veth1 58 ip link set veth0 netns at_ns0 60 ip netns exec at_ns0 ip link set dev veth0 up 61 ip link set dev veth1 up mtu 1500 69 ip link add dev $DEV_NS type $TYPE seq key 2 \ 71 ip netns exec at_ns0 ip link set dev $DEV_NS up 75 ip link add dev $DEV type $TYPE key 2 external 76 ip link set dev $DEV up 85 ip netns exec at_ns0 ip link set dev veth0 up 87 ip link set dev veth1 up [all …]
|
/tools/testing/selftests/wireguard/ |
D | netns.sh | 50 ip0 link del dev wg0 51 ip0 link del dev wg1 52 ip1 link del dev wg0 53 ip1 link del dev wg1 54 ip2 link del dev wg0 55 ip2 link del dev wg1 74 ip0 link set up dev lo 76 ip0 link add dev wg0 type wireguard 77 ip0 link set wg0 netns $netns1 78 ip0 link add dev wg0 type wireguard [all …]
|
/tools/firewire/ |
D | list.h | 20 list_insert(struct list *link, struct list *new_link) in list_insert() argument 22 new_link->prev = link->prev; in list_insert() 23 new_link->next = link; in list_insert() 41 list_remove(struct list *link) in list_remove() argument 43 link->prev->next = link->next; in list_remove() 44 link->next->prev = link->prev; in list_remove() 47 #define list_entry(link, type, member) \ argument 48 ((type *)((char *)(link)-(unsigned long)(&((type *)0)->member)))
|