dev.dpdk.org archive mirror
 help / color / mirror / Atom feed
From: Bruce Richardson <bruce.richardson@intel.com>
To: Navneet Rao <navneet.rao@oracle.com>
Cc: dev@dpdk.org
Subject: Re: Running testpmd over KNI
Date: Fri, 5 Jun 2015 11:24:01 +0100	[thread overview]
Message-ID: <20150605102401.GA10892@bricha3-MOBL3> (raw)
In-Reply-To: <c380d12b-ba87-4c53-b406-766f6c39fac5@default>

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

  parent reply	other threads:[~2015-06-05 10:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-04 21:01 Running testpmd over KNI Navneet Rao
2015-06-04 21:59 ` Navneet Rao
2015-06-05 10:24 ` Bruce Richardson [this message]
     [not found]   ` <152b86ce-b920-4fe9-a503-ebe65fc18846@default>
2015-06-05 17:20     ` Navneet Rao
2015-06-08 10:44       ` Bruce Richardson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150605102401.GA10892@bricha3-MOBL3 \
    --to=bruce.richardson@intel.com \
    --cc=dev@dpdk.org \
    --cc=navneet.rao@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).