Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wmf
· 4y ago · 0 comments
The kernel already does zero-copy routing; io_uring is for UDP and TCP.
Comments
[–]
kzemek
4y ago
For a given value of "zero"; the packets are still copied from NIC buffers and wrapped in sk_buff.
[–]
wmf
OP
4y ago
Maybe headers are parsed but my understanding is that the whole packet is not copied.
[–]
gigel82
4y ago
It's a NAT router so needs at minimum to masquerade (change the src/dest IP in the packet headers to match the internal / public). I'd also be running fail2ban or crowdsec for the bare intrusion detection.