On 7 September 2015 at 06:01, Stuart Haslam <[email protected]> wrote:
> On Mon, Sep 07, 2015 at 10:42:13AM +0300, Maxim Uvarov wrote: > > On 09/04/15 20:37, Bala Manoharan wrote: > > >This method of using pcap file to generate packets is fine. > > >But why should we use a dedicated interface with "pcap" as the name? > > > > > >I was imagining something like an ODP application which reads from a > > >given pcap file constructs the packet and sends the packet through an > > >interface. > > > > > >The concern I have is this method of creating a dummy interface with > > >"pcap" name will work fine in Linux-generic code but if you want to do > > >the same in other platforms then the platforms will have to implement > > >this virtual pcap interface but if this was an ODP application then > > >the platforms can simply run the application over their platform > > >without any change. > > > > > >Regards, > > >Bala > > > > It can be both app and pktio. For linux-generic it useful for > > testing. Other platforms can implement > > that packet io or not. It's it's up to platform implementers > > decision. Anyway different platforms > > have different names for packet i/o. > > > > BR, > > Maxim. > > Yes, what Maxim said. > > This is linux-generic specific (unlike the loop interface which is > defined in the API), it's really intended for developer testing with > existing applications. > I don’t see the value of writing something only for linux-generic that is so close to useful for all platform testing, we need to extend the validation tests to run with canned traffic to get some more realistic coverage. This should be and application that is spawned by the test scripting to achieve exactly the cases you describe but in a platform independent way I think. For example taking the first case, to a user this only changes to odp_classifier*_run* -ipcap:in=test.pcap -p -m 0 "ODP_PMR_SIP_ADDR:192.168.111.2:FFFFFFFF:queue1" -t 5 Now the interfaces are connected by the script between the pcap generator and the application under test. > -- > Stuart. > _______________________________________________ > lng-odp mailing list > [email protected] > https://lists.linaro.org/mailman/listinfo/lng-odp > -- Mike Holmes Technical Manager - Linaro Networking Group Linaro.org <http://www.linaro.org/> *│ *Open source software for ARM SoCs
_______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
