mirror of https://github.com/OISF/suricata
tcp: zero copy fast path in app-layer reassembly
Create 2 'fast paths' for app layer reassembly. Both are about reducing copying. In the cases described below, we pass the segment's data directly to the app layer API, instead of first copying it into a buffer than we then pass. This safes a copy. The first is for the case when we have just one single segment that was just ack'd. As we know that we won't use any other segment this round, we can just use the segment data. The second case is more aggressive. When the segment meets a certain size limit (currently hardcoded at 128 bytes), we pass it to the app-layer API directly. Thus invoking the app-layer somewhat more often to safe some copies.pull/1315/head
parent
8c1bc7cfb6
commit
2bba5eb704
Loading…
Reference in New Issue