Capture packets at 10g interface

Greg KH greg at kroah.com
Thu Jan 28 13:39:05 EST 2016


On Thu, Jan 28, 2016 at 11:47:36PM +0530, Tarun Batra wrote:
> Hi All,
> 
> I have to write a kernel module in which I have to capture packets from 10g nic
> interface and make a copy of them.

Why do you want to do that?

> I have two options
> Either use netfilters
> Either use add dev pack

What do you mean by this last choice?

> If any options u thing please let me know.
> 
> Should the module be multi threaded?

Why would it be?

> As I can't compromise with performance.
> 
> Can I bind kernel threads to specific core?

Yes, but are you sure you really want to do this in the kernel?  Can't
you do this today already from userspace?

thanks,

greg k-h



More information about the Kernelnewbies mailing list