On Wed, Dec 17, 2014 at 01:04:33PM +0000, Maxim Uvarov wrote:
> 1.
> 
> RAW sockets  are fail due to unable call SIOCGIFINDEX on my machine for
> pktio-p0 :
> 
>          err = ioctl(sockfd, SIOCGIFINDEX, &ethreq);
>          if (err != 0) {
>                  perror("setup_pkt_sock() - ioctl(SIOCGIFINDEX)");
>                  goto error;
>          }
>          if_idx = ethreq.ifr_ifindex;
> 
> I use 3.8.0-31-generic
> 
> Does it pass on your kernel?

Yes, are you running as root? How does it fail?

> 
> 2.
> 
> Tests needs export ODP_PLATFORM=linux-generic.

This is done in test/validation/Makefile.am when you run "make check".
If you want to run the test/validaton/odp_pktio_run script directly and
have it setup the test interfaces then yes you need to export
ODP_PLATFORM=linux-generic 

> If we are going to use pktio-p0/pktio-p1 for look devices
> for linux-generic then we need to pass that value from configure.

As above the platform name is passed to odp_pktio_run and that script
defines the interface names.

> Or even better ./configure should generate
> that names and store to some place. So that all others tests run
> (manually) will provide the same result.

Not sure what you mean by this.

--
Stuart.


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

Reply via email to