DPDK usage discussions
 help / color / mirror / Atom feed
* [dpdk-users] no driver found for pcap-based virtual NIC (eth_pcap0)
@ 2016-03-11 18:46 Douglas, Frederick E
  2016-03-14  9:05 ` Panu Matilainen
  0 siblings, 1 reply; 2+ messages in thread
From: Douglas, Frederick E @ 2016-03-11 18:46 UTC (permalink / raw)
  To: users

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-users] no driver found for pcap-based virtual NIC (eth_pcap0)
  2016-03-11 18:46 [dpdk-users] no driver found for pcap-based virtual NIC (eth_pcap0) Douglas, Frederick E
@ 2016-03-14  9:05 ` Panu Matilainen
  0 siblings, 0 replies; 2+ messages in thread
From: Panu Matilainen @ 2016-03-14  9:05 UTC (permalink / raw)
  To: Douglas, Frederick E, users

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 -

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-03-14  9:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-11 18:46 [dpdk-users] no driver found for pcap-based virtual NIC (eth_pcap0) Douglas, Frederick E
2016-03-14  9:05 ` Panu Matilainen

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).