Sending and receiving packets on Linux mostly just works, so most of us never look at how it's done. That changes once you're chasing packet drops or latency on a busy server. Almost every step between the NIC and your…
At the end of part 1 we had one CPU doing all of the receive work on a single-queue NIC. It takes the interrupt, runs the NAPI poll and pushes every packet up the stack on its own. Servers have dozens of cores these…
The NIC driver has come up a few times in this series already. It's the part of the kernel that actually talks to the card, and it's where a received packet first turns into an sk_buff.
Almost all the work we followed in part 3 is done once per packet, no matter how big the packet is. With small packets, and with VMs, that cost adds up quickly, and the usual answer is to take the host kernel out of the…