Searched refs:net_fd (Results 1 – 3 of 3) sorted by relevance
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | sk_lookup.c | 413 int net_fd; in attach_lookup_prog() local 415 net_fd = open("/proc/self/ns/net", O_RDONLY); in attach_lookup_prog() 416 if (CHECK(net_fd < 0, "open", "failed\n")) { in attach_lookup_prog() 421 link = bpf_program__attach_netns(prog, net_fd); in attach_lookup_prog() 429 close(net_fd); in attach_lookup_prog() 463 int net_fd; in query_lookup_prog() local 466 net_fd = open("/proc/self/ns/net", O_RDONLY); in query_lookup_prog() 467 if (CHECK(net_fd < 0, "open", "failed\n")) { in query_lookup_prog() 482 err = bpf_prog_query(net_fd, BPF_SK_LOOKUP, 0 /* query flags */, in query_lookup_prog() 535 close(net_fd); in query_lookup_prog()
|
D | flow_dissector.c | 598 int err, net_fd; in test_skb_less_link_create() local 600 net_fd = open("/proc/self/ns/net", O_RDONLY); in test_skb_less_link_create() 601 if (CHECK(net_fd < 0, "open(/proc/self/ns/net)", "err %d\n", errno)) in test_skb_less_link_create() 604 link = bpf_program__attach_netns(skel->progs._dissect, net_fd); in test_skb_less_link_create() 613 close(net_fd); in test_skb_less_link_create()
|
/linux-6.12.1/drivers/net/usb/ |
D | Kconfig | 511 protocol. Only the "eth-fd" or "net_fd" drivers in these devices
|