From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com [209.85.217.176]) by dpdk.org (Postfix) with ESMTP id 6E7C4B62 for ; Mon, 23 Mar 2015 16:54:37 +0100 (CET) Received: by lbbsy1 with SMTP id sy1so121652334lbb.1 for ; Mon, 23 Mar 2015 08:54:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=M+MnCIAthJyAtlbxBonPMalPZcPN1m7TTxzN6dghFsE=; b=Tf21TnWK/aPoEridaLMh8Gtdnu2ctjN17lByH4ftXuL7X//gu7ng/dSLoHm3Yax5/d l7IJUXg98+MwgaCVWUdjqV24JfFDQre4XJLkfqfaTnXVRqBHu/jR/lPfyzvg3xK8WaMi i7BcVIZai8n92lSy3gqRo0pjxjlK8WCnYJoe/UQGp4D3gq0UDd1StJrFbDfKfkG9SprT /gaUepN7YhZzUqj4MTvJg6LLH15z9EldYqhJViXdFqFxq+W9ukrpRqH+a4SX/pmyrCs2 519Ss2ZT0O9N/xf7k9qGVLYM+FPP3pSRsrj776O2MFo9AZm3C8HIVGe1hvUQwuCQQuTm ANpA== MIME-Version: 1.0 X-Received: by 10.152.116.11 with SMTP id js11mr62751611lab.106.1427126077188; Mon, 23 Mar 2015 08:54:37 -0700 (PDT) Received: by 10.25.214.42 with HTTP; Mon, 23 Mar 2015 08:54:37 -0700 (PDT) Date: Mon, 23 Mar 2015 21:24:37 +0530 Message-ID: From: Shankari Vaidyalingam To: "dev@dpdk.org" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-dev] Need info on --vdev option 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: Mon, 23 Mar 2015 15:54:37 -0000 Hi I'm trying to do a packet capture on the DPDK interface while running l2fwd sample application and injecting packets from a traffic generator. I'm getting the below error when I give this command: sudo ./build/l2fw-c 0x03 -n 2 -- -p 0x03 --vdev 'eth_pcap0,tx_pcap=/home/controller/pkt_capt/try.pcap' Pls let me know if I'm missing something. I also tried checking the documentation and confirmed that the ordering of the options is correct. But still I'm getting this error. I also tried various combinations like: But none of them worked. sudo ./build/l2fwd -c 0x03 -n 2 --vdev 'eth_pcap0,tx_pcap=/home/controller/pkt_capt/try.pcap' --p 0x03 sudo ./build/l2fwd -c 0x03 -n 2 --vdev 'eth_pcap0,tx_pcap=/home/controller/pkt_capt/try.pcap' -- -p 0x03 sudo ./build/l2fwd -c 0x03 -n 2 --vdev 'eth_pcap0,tx_pcap=/home/controller/pkt_capt/try.pcap' sudo ./build/l2fwd -c 0x03 -n 2 --p 0x03 --vdev 'eth_pcap0,tx_pcap=/home/controller/pkt_capt/try.pcap' sudo ./build/l2fwd -c 0x03 -n 2 -- -p 0x03 --vdev 'eth_pcap0,tx_pcap=/home/controller/pkt_capt/try.pcap' sudo ./build/l2fwd -c 0x03 -n 2 -- -p 0x03 sudo ./build/l2fwd -c 0x03 -n 2 -- -p 0x03 --vdev 'eth_pcap0,tx_pcap=/home/controller/pkt_capt/try.pcap' EAL: Detected lcore 0 as core 0 on socket 0 EAL: Detected lcore 1 as core 1 on socket 0 EAL: Support maximum 64 logical core(s) by configuration. EAL: Detected 2 lcore(s) EAL: Setting up memory... EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7ff21a200000 (size = 0x200000) EAL: Ask a virtual area of 0x3ec00000 bytes EAL: Virtual area found at 0x7ff1db400000 (size = 0x3ec00000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7ff1db000000 (size = 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7ff1dac00000 (size = 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7ff1da800000 (size = 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7ff1da400000 (size = 0x200000) EAL: Ask a virtual area of 0x400000 bytes EAL: Virtual area found at 0x7ff1d9e00000 (size = 0x400000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7ff1d9a00000 (size = 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7ff1d9600000 (size = 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7ff1d9200000 (size = 0x200000) EAL: Requesting 512 pages of size 2MB from socket 0 EAL: TSC frequency is ~2683644 KHz EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles ! EAL: Master core 0 is ready (tid=1b8d6800) EAL: Core 1 is ready (tid=d87f8700) EAL: PCI device 0000:00:08.0 on NUMA socket -1 EAL: probe driver: 8086:100f rte_em_pmd EAL: PCI memory mapped at 0x7ff21b880000 EAL: PCI device 0000:00:09.0 on NUMA socket -1 EAL: probe driver: 8086:100f rte_em_pmd EAL: PCI memory mapped at 0x7ff21b860000 EAL: PCI device 0000:00:0a.0 on NUMA socket -1 EAL: probe driver: 8086:100f rte_em_pmd EAL: 0000:00:0a.0 not managed by UIO driver, skipping EAL: PCI device 0000:00:11.0 on NUMA socket -1 EAL: probe driver: 8086:100f rte_em_pmd EAL: 0000:00:11.0 not managed by UIO driver, skipping ./build/l2fwd: unrecognized option '--vdev' ./build/l2fwd [EAL options] -- -p PORTMASK [-q NQ] -p PORTMASK: hexadecimal bitmask of ports to configure -q NQ: number of queue (=ports) per lcore (default is 1) -T PERIOD: statistics will be refreshed each PERIOD seconds (0 to disable, 10 default, 86400 maximum) EAL: Error - exiting with code: 1 Cause: Invalid L2FWD arguments Regards Shankari.V