[dpdk-dev] random pkt generator PMD

Mcnamara, John john.mcnamara at intel.com
Wed Jun 15 13:48:19 CEST 2016



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Yerden Zhumabekov
> Sent: Wednesday, June 15, 2016 12:11 PM
> To: Dumitrescu, Cristian <cristian.dumitrescu at intel.com>; dev at dpdk.org
> Subject: Re: [dpdk-dev] random pkt generator PMD
> 
> > How about a Perl/Python script to generate a PCAP file with random
> packets and then feed the PCAP file to the PCAP PMD?
> >
> > Random can mean different requirements for different users/application,
> I think it is difficult to fit this  under a simple generic API.
> Customizing the script for different requirements if a far better option
> in my opinion.
> 
> AFAIK, the thing about pcap pmd is that one needs to rewind pcap file once
> pcap pmd reaches its end. It requires additional (non-generic) handling in
> app code.

Hi,

Correct, the PCAP PMD currently stops generating packets once it reached the eof, for the file based interface. However, it could be extended to read a pcap into memory or mbufs and replay it/them. That might be a useful starting point before developing a new PMD.

John


More information about the dev mailing list