Re: [ovs-dev] 答复: [PATCH] Use batch process recv for tap and raw socket in netdev datapath

2019-12-19 Thread Ben Pfaff
On Wed, Dec 18, 2019 at 02:01:47AM +, Yi Yang (杨�D)-云服务集团 wrote: > Ben, thank for your review, for recvmmsg, we have to prepare some buffers > for it, but we have no way to know how many packets are there for socket, so > these mallocs are must-have overhead, maybe self-adaptive malloc

[ovs-dev] 答复: [PATCH] Use batch process recv for tap and raw socket in netdev datapath

2019-12-17 Thread 杨�D
Ben, thank for your review, for recvmmsg, we have to prepare some buffers for it, but we have no way to know how many packets are there for socket, so these mallocs are must-have overhead, maybe self-adaptive malloc mechanism is better, for example, the first receive just mallocs 4 buffers, if it