From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: Re: Running testpmd over KNI Date: Fri, 5 Jun 2015 11:24:01 +0100 Message-ID: <20150605102401.GA10892@bricha3-MOBL3> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Navneet Rao Return-path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id A267E4A63 for ; Fri, 5 Jun 2015 12:24:05 +0200 (CEST) Content-Disposition: inline In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jun 04, 2015 at 02:01:19PM -0700, Navneet Rao wrote: > Running --- > > > > ./testpmd -c7 -n3 --vdev=eth_pcap0,iface=vEth0 --vdev=eth_pcap1,iface=vEth1 -- -i --nb-cores=2 --nb-ports=2 --total-num-mbufs=1024 > > > > results in a > > > > EAL: Error - exiting with code: 1 > > Cause: Cannot create lock on '/var/run/.rte_config'. Is another primary process running? > > > > > > I don't think I am running another process using testpmd!!! > > Any ideas to debug this? > > > > Thanks > > -Navneet Hi Navneet, I'm a little unclear on your setup here. You are using a DPDK process to pull packets from a physical NIC and send them to the kernel using KNI. Then you want to have testpmd pull those packets from the KNI device using pcap back into user- space before returning them via the same sort of path i.e. userspace, pcap to kernel, kni back to userspace and out again. Can you explain why you want such a setup, as it will work very slowly compared to just running everything directly in userspace? As for your specific issue. If you have a DPDK process running to manage the KNI device, that is the process holding the lock on .rte_config. You will need to run the second process with a different file-prefix parameter to have two DPDK processes running side-by-side. Regards, /Bruce