Home
last modified time | relevance | path

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

/Linux-v5.4/tools/testing/selftests/net/
Dtcp_mmap.c160 zc.recv_skip_hint = 0; in child_thread()
173 if (zc.recv_skip_hint) { in child_thread()
174 assert(zc.recv_skip_hint <= chunk_size); in child_thread()
175 lu = read(fd, buffer, zc.recv_skip_hint); in child_thread()
/Linux-v5.4/include/uapi/linux/
Dtcp.h337 __u32 recv_skip_hint; /* out: amount of bytes to skip */ member
/Linux-v5.4/net/ipv4/
Dtcp.c1775 zc->recv_skip_hint = 0; in tcp_zerocopy_receive()
1777 zc->recv_skip_hint = inq; in tcp_zerocopy_receive()
1781 if (zc->recv_skip_hint < PAGE_SIZE) { in tcp_zerocopy_receive()
1789 zc->recv_skip_hint = skb->len - offset; in tcp_zerocopy_receive()
1802 int remaining = zc->recv_skip_hint; in tcp_zerocopy_receive()
1809 zc->recv_skip_hint -= remaining; in tcp_zerocopy_receive()
1818 zc->recv_skip_hint -= PAGE_SIZE; in tcp_zerocopy_receive()
1832 zc->recv_skip_hint = 0; in tcp_zerocopy_receive()
1834 if (!zc->recv_skip_hint && sock_flag(sk, SOCK_DONE)) in tcp_zerocopy_receive()