Re: [PATCH net-next] doc: document MSG_ZEROCOPY

From
Alexei Starovoitov <hidden>
Date
2017-09-01 02:10:13
Reply to
Willem de Bruijn, 2017-08-31
On Thu, Aug 31, 2017 at 05:00:13PM -0400, Willem de Bruijn wrote:
From: Willem de Bruijn <willemb@google.com>

Documentation for this feature was missing from the patchset.
Copied a lot from the netdev 2.1 paper, addressing some small
interface changes since then.

Signed-off-by: Willem de Bruijn <willemb@google.com>
...
quoted hunk ↗ jump to hunk
+Notification Batching
+~~~~~~~~~~~~~~~~~~~~~
+
+Multiple outstanding packets can be read at once using the recvmmsg
+call. This is often not needed. In each message the kernel returns not
+a single value, but a range. It coalesces consecutive notifications
+while one is outstanding for reception on the error queue.
+
+When a new notification is about to be queued, it checks whether the
+new value extends the range of the notification at the tail of the
+queue. If so, it drops the new notification packet and instead increases
+the range upper value of the outstanding notification.
Would it make sense to mention that max notification range is 32-bit?
So each 4Gbyte of xmit bytes there will be a notification.
In modern 40Gbps NICs it's not a lot. Means that there will be
at least one notification every second.
Or I misread the code?

Thanks for the doc!

Acked-by: Alexei Starovoitov <ast@kernel.org>
Thread (8 messages) 8 messages, 3 authors, last reply 2017-09-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help