From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] RFC: Introduce host_ifname field to struct rte_eth_dev_info Date: Thu, 2 Jan 2014 08:36:16 -0800 Message-ID: <20140102083616.2872c24a@nehalam.linuxnetplumber.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev-VfR2kkLFssw@public.gmane.org" To: Mats Liljegren Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" On Wed, 4 Dec 2013 16:39:05 +0100 Mats Liljegren wrote: > I played around with pcap to compare it against "pure" DPDK user-space > driver. I realized that interrupt affinity suddenly becomes important, > since it uses interrupts. So I needed a way to set it. > > The only place where I know which core will handle which pcap > interface, is within my DPDK application. But DPDK did not save the > host interface name anywhere, so it was nowhere to be found. > > I created a patch for this, found below. Is this something that could > be upstreamed? > > Best regards > Mats Liljegren interface name can be changed while application is running not sure if you want to cache it! Ifindex can't change. Also, if you use sysfs you can get/set irq_affinity based on PCI address.