Searched refs:veth2_idx (Results 1 – 3 of 3) sorted by relevance
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bind4_prog.c | 32 int veth1_idx, veth2_idx; in bind_to_device() local 44 &veth2_idx, sizeof(veth2_idx)) || !veth2_idx || in bind_to_device() 45 veth1_idx == veth2_idx) in bind_to_device()
|
| H A D | bind6_prog.c | 38 int veth1_idx, veth2_idx; in bind_to_device() local 50 &veth2_idx, sizeof(veth2_idx)) || !veth2_idx || in bind_to_device() 51 veth1_idx == veth2_idx) in bind_to_device()
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | fib_lookup.c | 1010 int redirect_fd, err, veth1_idx, veth2_idx = -1; in test_fib_lookup_vlan_redirect() local 1037 veth2_idx = if_nametoindex("veth2"); in test_fib_lookup_vlan_redirect() 1039 !ASSERT_NEQ(veth2_idx, 0, "if_nametoindex(veth2)")) in test_fib_lookup_vlan_redirect() 1047 err = bpf_xdp_attach(veth2_idx, bpf_program__fd(skel->progs.xdp_count), in test_fib_lookup_vlan_redirect() 1105 bpf_xdp_detach(veth2_idx, XDP_FLAGS_DRV_MODE, NULL); in test_fib_lookup_vlan_redirect()
|