Home
last modified time | relevance | path

Searched refs:rx_xsk (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/
Dxdp_hw_metadata.c60 struct xsk *rx_xsk; variable
405 static int verify_metadata(struct xsk *rx_xsk, int rxq, int server_fd, clockid_t clock_id) in verify_metadata() argument
416 fds[i].fd = xsk_socket__fd(rx_xsk[i].socket); in verify_metadata()
429 ret = kick_rx(&rx_xsk[i]); in verify_metadata()
453 struct xsk *xsk = &rx_xsk[i]; in verify_metadata()
580 close_xsk(&rx_xsk[i]); in cleanup()
676 rx_xsk = malloc(sizeof(struct xsk) * rxq); in main()
677 if (!rx_xsk) in main()
681 printf("open_xsk(%s, %p, %d)\n", ifname, &rx_xsk[i], i); in main()
682 ret = open_xsk(ifindex, &rx_xsk[i], i); in main()
[all …]
/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dxdp_metadata.c375 struct xsk rx_xsk = {}; in test_xdp_metadata() local
417 ret = open_xsk(rx_ifindex, &rx_xsk); in test_xdp_metadata()
451 sock_fd = xsk_socket__fd(rx_xsk.socket); in test_xdp_metadata()
475 if (!ASSERT_GE(verify_xsk_metadata(&rx_xsk, true), 0, in test_xdp_metadata()
492 if (!ASSERT_GE(verify_xsk_metadata(&rx_xsk, false), 0, in test_xdp_metadata()
534 close_xsk(&rx_xsk); in test_xdp_metadata()