On Tue, Jan 3, 2017 at 12:51 AM, Elo, Matias (Nokia - FI/Espoo)
<matias....@nokia-bell-labs.com> wrote:
>
>> I see the same sort of behavior with l2fwd_simple, so I'm inclined to
>> agree with you. I've verified that libpcap-dev is installed. What more
>> should be needed to run these?
>>
>
> Libpcap-dev should be enough to run these tests. Based on the error log I'm 
> guessing shm is causing this. I would try cleaning /tmp, check that there 
> aren’t any other ODP processes running in the background, or reboot the 
> system.

After doing both of these I get some more detail:

bill@Ubuntu15:~/linaro/review/example/l2fwd_simple$ ./l2fwd_simple_run.sh
using PCAP_IN = ./udp64.pcap
_ishm.c:859:_odp_ishm_reserve():No huge pages, fall back to normal
pages. check: /proc/sys/vm/nr_hugepages.
 PKTIO: initialized loop interface.
 PKTIO: initialized socket mmap, use export
ODP_PKTIO_DISABLE_SOCKET_MMAP=1 to disable.
 PKTIO: initialized socket mmsg,use export
ODP_PKTIO_DISABLE_SOCKET_MMSG=1 to disable.
pktio/socket_mmap.c:78:mmap_pkt_socket():socket(SOCK_RAW): Operation
not permitted
_ishm.c:451:create_file():open failed for
/tmp/odp-3150-ishm-pktio-pcap:in=./udp64.pcap: No such file or
directory.
_ishm.c:891:_odp_ishm_reserve():_ishm_reserve failed.
odp_packet_io.c:224:setup_pktio_entry():Unable to init any I/O type.
Failed to open pcap:in=./udp64.pcap
./l2fwd_simple_run.sh: line 15: kill: (3150) - No such process
Error: status was: 1, expected 0

+cc Christophe as the _ishm msgs may be a clue. My recollection is
that the last time I successfully ran pcap stuff we prior to the
integration of the _ishm code.

>
> -Matias
>

Reply via email to