1. 11 5月, 2018 2 次提交
  2. 10 5月, 2018 1 次提交
  3. 09 5月, 2018 2 次提交
  4. 08 5月, 2018 1 次提交
  5. 04 5月, 2018 6 次提交
  6. 03 5月, 2018 1 次提交
  7. 02 5月, 2018 2 次提交
  8. 30 4月, 2018 1 次提交
    • E
      selftests: net: tcp_mmap must use TCP_ZEROCOPY_RECEIVE · aacb0c2e
      Eric Dumazet 提交于
      After prior kernel change, mmap() on TCP socket only reserves VMA.
      
      We have to use getsockopt(fd, IPPROTO_TCP, TCP_ZEROCOPY_RECEIVE, ...)
      to perform the transfert of pages from skbs in TCP receive queue into such VMA.
      
      struct tcp_zerocopy_receive {
      	__u64 address;		/* in: address of mapping */
      	__u32 length;		/* in/out: number of bytes to map/mapped */
      	__u32 recv_skip_hint;	/* out: amount of bytes to skip */
      };
      
      After a successful getsockopt(...TCP_ZEROCOPY_RECEIVE...), @length contains
      number of bytes that were mapped, and @recv_skip_hint contains number of bytes
      that should be read using conventional read()/recv()/recvmsg() system calls,
      to skip a sequence of bytes that can not be mapped, because not properly page
      aligned.
      Signed-off-by: NEric Dumazet <edumazet@google.com>
      Cc: Andy Lutomirski <luto@kernel.org>
      Acked-by: NSoheil Hassas Yeganeh <soheil@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      aacb0c2e
  9. 29 4月, 2018 5 次提交
  10. 28 4月, 2018 10 次提交
  11. 27 4月, 2018 6 次提交
  12. 25 4月, 2018 3 次提交