From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by dpdk.org (Postfix) with ESMTP id 0FC362E8A for ; Thu, 2 Jan 2014 17:40:21 +0100 (CET) Received: by mail-pd0-f180.google.com with SMTP id q10so14353123pdj.39 for ; Thu, 02 Jan 2014 08:41:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=VoVKK/qrBCglW3e42xkMaUorLkkeyt7AhKpb5bEZObU=; b=XlPi7epInuGvBUBe01m0hcZFlai220CegAZQVeXkNhzOujAt52zVzbEObbU1+fvSeK OUIfx2hschIez1VZZzO0HdvtrSm5MB0ueEJMNvEjFp7vjLtXTgaUI56KJq8v7l/NV9hh jYv6sHgOrLE7qsYT4iCNp9B5iWszUrA8MigU0hi5iotbtCB8Qlsj7gW9Cq070J+P5MXu AqtXqUrjKPU5wwstOxJmVNM8mZyD0U9SK6k0nCN9/AW8zUcK87Kek+Rp5PWADhCbKuNY SGG+PQevyEh8/prpz7B5sSVe7sq79fSlMZkioGtg2UMgWyqRMHma8LpvflLqqKQwOZTC 2now== X-Gm-Message-State: ALoCoQm8WkW/MSvnyNnInJtAS4gEVzBHFNRD9E0JGWVJjq9vRGnRyqWHhSYpAE5b9fihE4DAVxqS X-Received: by 10.68.194.97 with SMTP id hv1mr4703095pbc.162.1388680578879; Thu, 02 Jan 2014 08:36:18 -0800 (PST) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id oa3sm1446320pbb.15.2014.01.02.08.36.18 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 02 Jan 2014 08:36:18 -0800 (PST) Date: Thu, 2 Jan 2014 08:36:16 -0800 From: Stephen Hemminger To: Mats Liljegren Message-ID: <20140102083616.2872c24a@nehalam.linuxnetplumber.net> In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH] RFC: Introduce host_ifname field to struct rte_eth_dev_info X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2014 16:40:22 -0000 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.