diff options
| author | Willem de Bruijn <[email protected]> | 2017-08-03 20:29:42 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-08-04 04:37:30 +0000 |
| commit | 4ab6c99d99bb1bf0fbba8ff4e52114c66109992f (patch) | |
| tree | a26ab133dc8deb094ed130f4100520f490b3feee /net/sched/cls_basic.c | |
| parent | sock: enable MSG_ZEROCOPY (diff) | |
| download | kernel-4ab6c99d99bb1bf0fbba8ff4e52114c66109992f.tar.gz kernel-4ab6c99d99bb1bf0fbba8ff4e52114c66109992f.zip | |
sock: MSG_ZEROCOPY notification coalescing
In the simple case, each sendmsg() call generates data and eventually
a zerocopy ready notification N, where N indicates the Nth successful
invocation of sendmsg() with the MSG_ZEROCOPY flag on this socket.
TCP and corked sockets can cause send() calls to append new data to an
existing sk_buff and, thus, ubuf_info. In that case the notification
must hold a range. odify ubuf_info to store a inclusive range [N..N+m]
and add skb_zerocopy_realloc() to optionally extend an existing range.
Also coalesce notifications in this common case: if a notification
[1, 1] is about to be queued while [0, 0] is the queue tail, just modify
the head of the queue to read [0, 1].
Coalescing is limited to a few TSO frames worth of data to bound
notification latency.
Signed-off-by: Willem de Bruijn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_basic.c')
0 files changed, 0 insertions, 0 deletions
