On Fri, Sep 04, 2015 at 02:50:47PM -0500, Bill Fischofer wrote:
> On Fri, Sep 4, 2015 at 8:20 AM, Stuart Haslam <[email protected]>
> wrote:
> 
> > This is pretty handy for testing, for example to test classifier rules
> > using packets from a pcap;
> >
> > odp_classifier -ipcap:in=test.pcap -p -m 0 
> > "ODP_PMR_SIP_ADDR:192.168.111.2:FFFFFFFF:queue1"
> > -t 5
> >
> > Use the l2fwd app send packets from a pcap out over a real interface;
> >
> > odp_l2fwd -ipcap:in=test.pcap:loops=10,eth0 -t 5
> >
> > Check that l2fwd doesn't reorder packets;
> >
> > odp_l2fwd -m 0 -i pcap:in=test.pcap,pcap:out=test_out.pcap
> > editcap -v -D 0 test.pcap     /dev/null | awk '{print $7}' > test.txt
> > editcap -v -D 0 test_out.pcap /dev/null | awk '{print $7}' > test_out.txt
> > diff -q test.txt test_out.txt
> >
> > (oops, it does when using > 2 workers)
> >
> 
> Stuart: Is this with the just-released ODP v1.3 using ordered queues?
> Preventing this is what ordered queues are designed to do.
> 

In this case I was running it in "direct" mode, so it's calling
odp_pktio_recv()/_send() directly. Ordering is therefore the
responsibility of the application but it's doing nothing to maintain
order while calling recv/send on the same interface from multiple
threads. I'll raise a bug against the app for that.

It does have a mode in which packets are received via the scheduler,
I'll give that a try. It's using ATOMIC at the minute so it should work,
it would be interesting to covert to an ORDERED queue though I suspect
performance would suffer as per-packet cost is low.

-- 
Stuart.
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to