Andres Perera [andre...@zoho.com] wrote: > > i don't expect *every* application to manage the rx/tx rings directly, > reinject when they're done >
Let's be more practical here. Luigi already gives you a stub pcap library that does this for you. You can take an existing pcap application, link it to the netmap-pcap stub, and it works with netmap. I don't believe you get any BPF filtering capability with the stub. You want to stop multicast? program the hash filter on your receiver chip to not dump it to userland memory. This stub library with a simple packet generator and receiver show that you can generate or sink a 10GbE card at line-rate, small packets with a single core on a 4-core CPU. I think this should speak for itself. Nobody is suggesting you replace the kernel or any part of it with this tool for general use.