From mboxrd@z Thu Jan 1 00:00:00 1970 From: greg@kroah.com (Greg KH) Date: Thu, 28 Jan 2016 10:39:05 -0800 Subject: Capture packets at 10g interface In-Reply-To: References: Message-ID: <20160128183905.GA23005@kroah.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org 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