WenyuanShao / eos

this is the eos fork of composite
1 stars 0 forks source link

handle large reply #7

Open ryuxin opened 5 years ago

ryuxin commented 5 years ago

If the reply size is larger than one packet, some hack will make code easy. The rule is the batch of allocation (EOS_PKT_PER_ENTRY) should be larger than the reply size, and the most safe is setting the send/receive batch to 1 to avoid allocate pending receive packets. This is determined by ninf_rx https://github.com/WenyuanShao/eos/blob/fwp/src/components/implementation/no_interface/fwp_manager/ninf_rx.c#L239