From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 0B07C5320 for ; Mon, 14 Mar 2016 10:05:46 +0100 (CET) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 81E157F089; Mon, 14 Mar 2016 09:05:45 +0000 (UTC) Received: from sopuli.koti.laiskiainen.org (vpn1-4-230.ams2.redhat.com [10.36.4.230]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2E95igU001809; Mon, 14 Mar 2016 05:05:44 -0400 To: "Douglas, Frederick E" , "users@dpdk.org" References: From: Panu Matilainen Message-ID: <56E67EE7.4070505@redhat.com> Date: Mon, 14 Mar 2016 11:05:43 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Subject: Re: [dpdk-users] no driver found for pcap-based virtual NIC (eth_pcap0) X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Mar 2016 09:05:46 -0000 On 03/11/2016 08:46 PM, Douglas, Frederick E wrote: > I'm new to DPDK. I've gotten the basics working, but I'm having trouble with the .pcap file-based virtual interface. The EAL is failing to set things up when I ask it to use a pcap virtual interface, with: > > --vdev 'eth_pcap0,rx_pcap=/full/path/to/iperf_udp.pcap,tx_pcap=/full/path/to/NEW.pcap' > > It says "EAL: no driver found for eth_pcap0; EAL: failed to initialize eth_pcap0 device; PANIC in rte_eal_init(): Cannot init pmd devices". > > Everything works fine with the all-in-memory virtual interfaces (--vdev=eth_ring0 --vdev=eth_ring1). I even confirmed (with chunks of code from https://github.com/marty90/DPDK-Dump) that I can get testpmd to use a pcap_dumper_t to dump the traffic it processes to a .pcap file. > > There doesn't seem to be anything in the setup.sh consolidated setup menu about pcap, and the part of the manual describing the pcap vdev (http://dpdk.org/doc/guides/nics/pcap_ring.html#libpcap-based-pmd) doesn't mention anything that needs to be done - in fact it's in the manual right together with the in-memory ring-based driver. I found a drivers/net/pcap directory with a Makefile that had never been made, but nothing changed after making it. > > In case any of this might matter: > =I'm trying to run testpmd (with some slight modifications, which work as expected with the ring vdev) > =Ubuntu 14.04; DPDK configured for x86_64-native-linuxapp-gcc > =1024 2MiB hugepages > > So, does anyone have any idea? I have a feeling I'm missing something really simple... but I'm out of ideas about what that might be! > The PCAP driver is not built by default because it has external dependencies. See http://dpdk.org/doc/guides/nics/pcap_ring.html - Panu -