Stuart: Agree on the need for interface capability inquiry. Perhaps an odp_pktio_info_t struct can be defined that is returned by an odp_pktio_info() call? That would be consistent with similar syntax we're using for other things (shm, buffer pools). A max_mtu field would be part of this struct which the test could then use.
Petri: We should discuss the sort of needs applications have in this area as part of the pktio API finialization. On Thu, Dec 18, 2014 at 5:11 AM, Maxim Uvarov <[email protected]> wrote: > > On 12/18/2014 01:43 PM, Stuart Haslam wrote: > >> On Thu, Dec 18, 2014 at 10:30:28AM +0000, Maxim Uvarov wrote: >> >>> On 12/18/2014 12:42 PM, Stuart Haslam wrote: >>> >>>> +static void pktio_test_mtu(void) >>>>> >>>>>> +{ >>>>>>> + int i; >>>>>>> + int ret; >>>>>>> + int def; >>>>>>> + odp_pktio_t pktio = create_pktio(iface_name[0]); >>>>>>> + >>>>>>> + printf("testing mtu for %s\n", iface_name[0]); >>>>>>> >>>>>> This printf isn't needed, cunit tells you which test is being run, >>>>> same >>>>> with the others below. >>>>> >>>> I wanted to print pktio name on which testing is done. >>> >>> Maxim. >>> >>> There's a single print in init_pktio_suite() that prints the interface >> name(s) used for all of the tests. >> >> Agree, remove that lines. > > Maxim. >
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
