Which way is faster , when receive a lot of packets?
lx
lxlenovostar at gmail.com
Mon Aug 25 08:30:00 EDT 2014
hi:
I have two ideas to handle the packet.
1.I allocate a memory pool and mmap into userspace, when packet is coming,
I copy packet into the memory pool, then, userspace can access it.
2.When packet is coming , I mmap the data of packet into userspace every
time, then userspace can access this packet.
Which one is better, why?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140825/c74822f2/attachment.html
More information about the Kernelnewbies
mailing list