[dpdk-dev] [PATCH] RFC: Introduce host_ifname field to struct rte_eth_dev_info
stephen at networkplumber.org
Thu Jan 2 17:36:16 CET 2014
On Wed, 4 Dec 2013 16:39:05 +0100
Mats Liljegren <liljegren.mats2 at gmail.com> 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.
More information about the dev