diff options
| author | David S. Miller <davem@davemloft.net> | 2018-04-16 18:26:38 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-04-16 18:26:38 -0400 |
| commit | 309c446cb45f6663932c8e6d0754f4ac81d1b5cd (patch) | |
| tree | e8eb152424755e887f745634ae6d163b79835e17 /include/linux | |
| parent | 10b19aeac1700c3ba94fb50583a766d9cdaf1e9e (diff) | |
| parent | 192dc405f3080f1f7d8e90f638dc08c0e5a803a2 (diff) | |
| download | cachepc-linux-309c446cb45f6663932c8e6d0754f4ac81d1b5cd.tar.gz cachepc-linux-309c446cb45f6663932c8e6d0754f4ac81d1b5cd.zip | |
Merge branch 'tcp-zero-copy-receive'
Eric Dumazet says:
====================
tcp: add zero copy receive
This patch series add mmap() support to TCP sockets for RX zero copy.
While tcp_mmap() patch itself is quite small (~100 LOC), optimal support
for asynchronous mmap() required better SO_RCVLOWAT behavior, and a
test program to demonstrate how mmap() on TCP sockets can be used.
Note that mmap() (and associated munmap()) calls are adding more
pressure on per-process VM semaphore, so might not show benefit
for processus with high number of threads.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/net.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/net.h b/include/linux/net.h index 2248a052061d..6554d3ba4396 100644 --- a/include/linux/net.h +++ b/include/linux/net.h @@ -197,6 +197,7 @@ struct proto_ops { int offset, size_t size, int flags); int (*sendmsg_locked)(struct sock *sk, struct msghdr *msg, size_t size); + int (*set_rcvlowat)(struct sock *sk, int val); }; #define DECLARE_SOCKADDR(type, dst, src) \ |
