Home
last modified time | relevance | path

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

/linux/tools/virtio/
H A Dvhost_net_test.c25 #define TEST_BUF_LEN 256 macro
132 ret = sendto(sockfd, sendbuf, TEST_BUF_LEN, 0, in vdev_send_packet()
217 dev->buf_size = (HDR_LEN + TEST_BUF_LEN) * 2; in vdev_info_init()
221 dev->res_buf = dev->test_buf + HDR_LEN + TEST_BUF_LEN; in vdev_info_init()
223 memset(dev->test_buf, 0, HDR_LEN + TEST_BUF_LEN); in vdev_info_init()
229 for (i = sizeof(*eh); i < TEST_BUF_LEN; i++) in vdev_info_init()
271 for (i = ETHER_HDR_LEN; i < TEST_BUF_LEN; i++) in verify_res_buf()
291 sg_init_one(&sl, dev->test_buf, HDR_LEN + TEST_BUF_LEN); in run_tx_test()
313 n = recvfrom(dev->sock, dev->res_buf, TEST_BUF_LEN, 0, NULL, NULL); in run_tx_test()
314 assert(n == TEST_BUF_LEN); in run_tx_test()
[all …]