[ovs-dev] [PATCH] acinclude: Check RTE_LIBRTE_PMD_PCAP and libpcap.

William Tu u9012063 at gmail.com
Fri Apr 17 18:16:22 UTC 2020


On Fri, Apr 17, 2020 at 9:02 AM Ilya Maximets <i.maximets at ovn.org> wrote:
>
> On 4/17/20 3:14 PM, William Tu wrote:
> > When enabling RTE_LIBRTE_PMD_PCAP in DPDK, we need to link the libpcap
> > library, otherwise 'make' will fail.  I'm using this for creating a
> > pcap-based device which read pcap file infinitely to rx queue, acting
> > like a traffic generator.  Example:
> >   $ ovs-vsctl add-port br0 tg0 -- set int tg0 type=dpdk \
> >     options:dpdk-devargs=vdev:net_pcap0,rx_pcap=p0.pcap,infinite_rx=1
> >
> > The p0.pcap is replayed into the rx queue of tg0, generating
> > traffic rate around 8Mpps into OVS when OVS is doing drop.
> > For more info, see https://doc.dpdk.org/guides/nics/pcap_ring.html
> >
> > Cc: Michal Orsák <michal.orsak at gmail.com>
> > Signed-off-by: William Tu <u9012063 at gmail.com>
> > ---
>
> Hi William.
>
> There is already similar patch series from Ciara:
> https://patchwork.ozlabs.org/project/openvswitch/list/?series=157685
> I just had no enough time to get to them.
>
> Best regards, Ilya Maximets.

OK thanks!
I will take a look
William


More information about the dev mailing list