Re: socket splicing for UDP

2013-01-08 Thread Alexander Bluhm
Hi, I have discovered a bad interaction between the pf.statekey in the mbuf header and UDP socket splicing. When the packet gets spliced, it uses this key in ip_output() although it went through two sockets in the meantime. To avoid this, I reset the pf.statekey in the mbuf after udp_input() has

socket splicing for UDP

2013-01-05 Thread Alexander Bluhm
Hi, Here is my kernel diff to expand socket splicing to UDP. The advantage for relaying applications is that they can forward the data without copying it to user space. Currently relayd uses socket splicing for TCP connections only. The idea of my implementation is to merge the code relevant fo