Home
last modified time | relevance | path

Searched refs:net_fd (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dsk_lookup.c413 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()
Dflow_dissector.c598 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/
DKconfig511 protocol. Only the "eth-fd" or "net_fd" drivers in these devices