packet_mmap: How to kernel address from user-space address
selvamuthukumar v
v.selvamuthukumar at gmail.com
Mon Apr 6 16:45:10 EDT 2015
I'm trying to accelerate snort with a hardware Pattern Matching Engine.
snort gets packets using libpcap which uses packet mmap. snort gets the
mmap-ed address, it does all header parsing, now I want to offload the
content detection to hardware. PME driver currently provides and ioctl
interface to pass the packet. Driver does copy_from_user to get packet data
to kernel and try to match it against pre-loaded contents. I'm trying to
avoid this copy. What is the best way to get the kernel address from user
address in this case?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150407/bd2d9b71/attachment.html
More information about the Kernelnewbies
mailing list