songgao / water

A simple TUN/TAP library written in native Go.
BSD 3-Clause "New" or "Revised" License
1.96k stars 295 forks source link

Document threading properties of Ifce #44

Closed calder closed 5 years ago

calder commented 6 years ago

Starter questions:

songgao commented 6 years ago

Each interface corresponds to a file descriptor, so it probably doesn’t make sense to have multiple threads working on the same interface. If The goal is to have parallel streams to increase throughout, Linux has multiqueue support for TUN/TAP: https://www.kernel.org/doc/Documentation/networking/tuntap.txt

songgao commented 5 years ago

Closing. Feel free to reopen if you have further questions.