[lng-odp] DPDK pktio tests failure

2017-10-04 Thread Dmitry Eremin-Solenikov
Hello,

I'm observing occasional test failures on pktio_dpdk tests, with the
following lines in the log:

ERROR: This system does not support "RDRAND".
Please check that RTE_MACHINE is set correctly.

Does anyone know how to fix or workaround that?

-- 
With best wishes
Dmitry


Re: [lng-odp] DPDK pktio tests failure

2017-10-04 Thread Bill Fischofer
Are you using valgrind by any chance? Some quick Googling suggests shows
this:

https://stackoverflow.com/questions/37386738/error-when-running-dpdk-app-on-valgrind

On Wed, Oct 4, 2017 at 6:17 PM, Dmitry Eremin-Solenikov <
dmitry.ereminsoleni...@linaro.org> wrote:

> Hello,
>
> I'm observing occasional test failures on pktio_dpdk tests, with the
> following lines in the log:
>
> ERROR: This system does not support "RDRAND".
> Please check that RTE_MACHINE is set correctly.
>
> Does anyone know how to fix or workaround that?
>
> --
> With best wishes
> Dmitry
>


Re: [lng-odp] DPDK pktio tests failure

2017-10-04 Thread Bogdan Pricope
... or dpdk tests are really failing...


# ./test/linux-generic/validation/api/pktio/pktio_run_dpdk.sh
running with pktio_main:
pktio: setting up test interfaces pktiop0p1, pktiop1p0, pktiop2p3, pktiop3p2.
HW time counter freq: 3092977409 hz

 PKTIO: initialized loop interface.
 PKTIO: initialized dpdk pktio, use export ODP_PKTIO_DISABLE_DPDK=1 to disable.
 PKTIO: initialized pcap interface.
 PKTIO: initialized ipc 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.
ODP API version: 1.15.0
ODP implementation name:"odp-linux"
ODP implementation version: "odp-linux" 1.15.0-0 (v1.15.0) 1.15.0.0


 CUnit - A unit testing framework for C - Version 2.1-2
 http://cunit.sourceforge.net/

Using paired interfaces: 0 1
EAL: Detected 4 lcore(s)
PMD: Initializing pmd_pcap for eth_pcap0
PMD: Creating pcap-backed ethdev on numa socket 0
PMD: Initializing pmd_pcap for eth_pcap1
PMD: Creating pcap-backed ethdev on numa socket 0

Suite: Packet I/O Unsegmented
  Test: pktio_test_open ...pktio/dpdk.c:1163:dpdk_open():Invalid dpdk
netdev: nothere
pktio/socket.c:119:mac_addr_get_fd():ioctl(SIOCGIFHWADDR): No such
device: "nothere".
pktio/socket.c:511:sock_setup_pkt():ioctl(SIOCGIFINDEX): No such
device: "nothere".
odp_packet_io.c:229:setup_pktio_entry():Unable to init any I/O type.
passed
  Test: pktio_test_lookup ...passed
  Test: pktio_test_index ...passed
  Test: pktio_test_print ...
pktio
  handle1
  name  0
  type  dpdk
  state opened
  mac   00:00:00:01:02:03
  mtu   8064
  promisc   no
  max input queues  1
  max output queues 1


pktio
  handle1
  name  1
  type  dpdk
  state opened
  mac   00:00:00:01:02:03
  mtu   8064
  promisc   no
  max input queues  1
  max output queues 1

passed
  Test: pktio_test_pktio_config ...passed
  Test: pktio_test_info ...pktio 0
  name   0
  driver dpdk
pktio 1
  name   1
  driver dpdk
passed
  Test: pktio_test_pktin_queue_config_direct ...passed
  Test: pktio_test_pktin_queue_config_sched ...passed
  Test: pktio_test_pktin_queue_config_queue ...passed
  Test: pktio_test_pktout_queue_config ...passed
  Test: pktio_test_plain_queue ...error: header magic invalid 8650752
error: header magic invalid 393473
error: header magic invalid 0
error: header magic invalid 0
error: header magic invalid 393473
FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_plain_multi ...error: header magic invalid 0
error: header magic invalid 393473
FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_sched_queue ...error: header magic invalid 393473
error: header magic invalid 393473
FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_sched_multi ...FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_recv ...FAILED
1. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_recv_multi ...error: header magic invalid 393473
FAILED
1. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_recv_queue ...FAILED
1. pktio.c:890  - num_rx == TX_BATCH_LEN
  Test: pktio_test_recv_tmo ...passed
  Test: pktio_test_recv_mq_tmo ...passed
  Test: pktio_test_recv_mtu ...error: header magic invalid 0
error: header magic invalid 0
error: header magic invalid 0
error: header magic invalid 0
FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_mtu ... 8064 passed
  Test: pktio_test_promisc ...passed
  Test: pktio_test_mac ...testing mac for 0
 0:0:0:1:2:3 passed
  Test: pktio_test_start_stop ...passed
  Test: pktio_test_recv_on_wonly ...passed
  Test: pktio_test_send_on_ronly ...passed
  Test: pktio_test_plain_multi_event ...FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_sched_multi_event ...FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_recv_multi_event ...FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_statistics_counters ...passed
  Test: pktio_test_pktin_ts ...FAILED
1. pktio.c:2017  - num_rx == TX_BATCH_LENUsing paired interfaces: 0 1

Suite: Packet I/O Segmented
  Test: pktio_test_plain_queue ...FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_plain_multi ...FAILED
1. pktio.c:661  - num_rx == num_pkts
2. pktio.c:661  - num_rx == num_pkts
  Test: pktio_test_sched_queue ...error: header magic invalid 0
error: header magic invalid 0
FAILED
1. pktio.c:661  - num_rx == num

Re: [lng-odp] DPDK pktio tests failure

2017-10-04 Thread Maxim Uvarov
2 issues with dpdk pktio found yesterday:

1) Krishnas update of dpdk version did something wrong with Travis
cache. So I had to clear it.

2) Zero copy dpdk has some issues now. We need to understand what is it.

Maxim.


On 10/05/17 08:56, Bogdan Pricope wrote:
> ... or dpdk tests are really failing...
> 
> 
> # ./test/linux-generic/validation/api/pktio/pktio_run_dpdk.sh
> running with pktio_main:
> pktio: setting up test interfaces pktiop0p1, pktiop1p0, pktiop2p3, pktiop3p2.
> HW time counter freq: 3092977409 hz
> 
>  PKTIO: initialized loop interface.
>  PKTIO: initialized dpdk pktio, use export ODP_PKTIO_DISABLE_DPDK=1 to 
> disable.
>  PKTIO: initialized pcap interface.
>  PKTIO: initialized ipc 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.
> ODP API version: 1.15.0
> ODP implementation name:"odp-linux"
> ODP implementation version: "odp-linux" 1.15.0-0 (v1.15.0) 1.15.0.0
> 
> 
>  CUnit - A unit testing framework for C - Version 2.1-2
>  http://cunit.sourceforge.net/
> 
> Using paired interfaces: 0 1
> EAL: Detected 4 lcore(s)
> PMD: Initializing pmd_pcap for eth_pcap0
> PMD: Creating pcap-backed ethdev on numa socket 0
> PMD: Initializing pmd_pcap for eth_pcap1
> PMD: Creating pcap-backed ethdev on numa socket 0
> 
> Suite: Packet I/O Unsegmented
>   Test: pktio_test_open ...pktio/dpdk.c:1163:dpdk_open():Invalid dpdk
> netdev: nothere
> pktio/socket.c:119:mac_addr_get_fd():ioctl(SIOCGIFHWADDR): No such
> device: "nothere".
> pktio/socket.c:511:sock_setup_pkt():ioctl(SIOCGIFINDEX): No such
> device: "nothere".
> odp_packet_io.c:229:setup_pktio_entry():Unable to init any I/O type.
> passed
>   Test: pktio_test_lookup ...passed
>   Test: pktio_test_index ...passed
>   Test: pktio_test_print ...
> pktio
>   handle1
>   name  0
>   type  dpdk
>   state opened
>   mac   00:00:00:01:02:03
>   mtu   8064
>   promisc   no
>   max input queues  1
>   max output queues 1
> 
> 
> pktio
>   handle1
>   name  1
>   type  dpdk
>   state opened
>   mac   00:00:00:01:02:03
>   mtu   8064
>   promisc   no
>   max input queues  1
>   max output queues 1
> 
> passed
>   Test: pktio_test_pktio_config ...passed
>   Test: pktio_test_info ...pktio 0
>   name   0
>   driver dpdk
> pktio 1
>   name   1
>   driver dpdk
> passed
>   Test: pktio_test_pktin_queue_config_direct ...passed
>   Test: pktio_test_pktin_queue_config_sched ...passed
>   Test: pktio_test_pktin_queue_config_queue ...passed
>   Test: pktio_test_pktout_queue_config ...passed
>   Test: pktio_test_plain_queue ...error: header magic invalid 8650752
> error: header magic invalid 393473
> error: header magic invalid 0
> error: header magic invalid 0
> error: header magic invalid 393473
> FAILED
> 1. pktio.c:661  - num_rx == num_pkts
> 2. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_plain_multi ...error: header magic invalid 0
> error: header magic invalid 393473
> FAILED
> 1. pktio.c:661  - num_rx == num_pkts
> 2. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_sched_queue ...error: header magic invalid 393473
> error: header magic invalid 393473
> FAILED
> 1. pktio.c:661  - num_rx == num_pkts
> 2. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_sched_multi ...FAILED
> 1. pktio.c:661  - num_rx == num_pkts
> 2. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_recv ...FAILED
> 1. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_recv_multi ...error: header magic invalid 393473
> FAILED
> 1. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_recv_queue ...FAILED
> 1. pktio.c:890  - num_rx == TX_BATCH_LEN
>   Test: pktio_test_recv_tmo ...passed
>   Test: pktio_test_recv_mq_tmo ...passed
>   Test: pktio_test_recv_mtu ...error: header magic invalid 0
> error: header magic invalid 0
> error: header magic invalid 0
> error: header magic invalid 0
> FAILED
> 1. pktio.c:661  - num_rx == num_pkts
> 2. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_mtu ... 8064 passed
>   Test: pktio_test_promisc ...passed
>   Test: pktio_test_mac ...testing mac for 0
>  0:0:0:1:2:3 passed
>   Test: pktio_test_start_stop ...passed
>   Test: pktio_test_recv_on_wonly ...passed
>   Test: pktio_test_send_on_ronly ...passed
>   Test: pktio_test_plain_multi_event ...FAILED
> 1. pktio.c:661  - num_rx == num_pkts
> 2. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_sched_multi_event ...FAILED
> 1. pktio.c:661  - num_rx == num_pkts
> 2. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_recv_multi_event ...FAILED
> 1. pktio.c:661  - num_rx == num_pkts
> 2. pktio.c:661  - num_rx == num_pkts
>   Test: pktio_test_statistics_counters