News for hackers. Stuff that matters.
Re:Why do we use the Linux kernel's TCP stack? by Matthias247 on Saturday July 02, 2016 @07:33AM (#12022157)
I guess most locking is in place in order to allow multiplexing - different applications need access to different sockets, which however send and receive data from the same NIC.

If you implement the whole stack in userspace and have only a single thread which processes all data you might get away with less locking. However as soon as there are multiple threads which want to send/receive on multiple endpoints there is the same need for synchronization and it would need to be implemented in userspace.

Re:Why do we use the Linux kernel's TCP stack? by hendzen on Saturday July 02, 2016 @09:00PM (#12024394)
in practice you will bind a single core to each NIC and then run a single polling thread for each networking core that runs with rtprio enabled.