[PATCH] Receive multiple packets at a time

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Dec 2 14:20:24 CET 2015


Guus Sliepen, on Wed 02 Dec 2015 13:53:37 +0100, wrote:
> I guess in the future, we want to put a "cork" on the output until all
> packets from a single recvmmsg() have been received, so that we can do
> sendmmsg() on the resulting outgoing packets.

Yes.

> > More is yet to come: I'll have a look at extending the tun/tap interface
> > to send/receive several packets at a time, and then also using sendmmsg
> > will again improve performance.
> 
> Last time I checked, the send/recvmmsg() functionality is actually there
> in the kernel code, but just not exposed to userspace. It would be great
> to have access to it though.

Well, the tun driver currently expects the writer (for instance) to
put one packet at a time. If given more than one packet it's not able
to consume only one packet and let the rest for a further call. But it
shouldn't be too hard to fix that.

Samuel


More information about the tinc-devel mailing list