Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/prog_tests/
A Dsk_lookup.c474 int net_fd; in attach_lookup_prog() local
476 net_fd = open("/proc/self/ns/net", O_RDONLY); in attach_lookup_prog()
477 if (CHECK(net_fd < 0, "open", "failed\n")) { in attach_lookup_prog()
482 link = bpf_program__attach_netns(prog, net_fd); in attach_lookup_prog()
490 close(net_fd); in attach_lookup_prog()
524 int net_fd; in query_lookup_prog() local
527 net_fd = open("/proc/self/ns/net", O_RDONLY); in query_lookup_prog()
528 if (CHECK(net_fd < 0, "open", "failed\n")) { in query_lookup_prog()
543 err = bpf_prog_query(net_fd, BPF_SK_LOOKUP, 0 /* query flags */, in query_lookup_prog()
596 close(net_fd); in query_lookup_prog()
A Dflow_dissector.c537 int err, net_fd; in test_skb_less_link_create() local
539 net_fd = open("/proc/self/ns/net", O_RDONLY); in test_skb_less_link_create()
540 if (CHECK(net_fd < 0, "open(/proc/self/ns/net)", "err %d\n", errno)) in test_skb_less_link_create()
543 link = bpf_program__attach_netns(skel->progs._dissect, net_fd); in test_skb_less_link_create()
552 close(net_fd); in test_skb_less_link_create()
/linux/drivers/net/usb/
A DKconfig509 protocol. Only the "eth-fd" or "net_fd" drivers in these devices

Completed in 7 milliseconds