Re: can odp4vpp run over ARM aarch64?

Eric Chen <ericxh@...>
 

HI Sreejith

 

Any special setup needed in startup.conf?

 

I tried cross and natively compiled vpp, they behaved the same – all can’t “create pktio-interface” and core dump.

 

However when I run odp application instead of vpp, it’s working ok.

 

See below =====================================================================

 

VPP:

 

ericxh@linaro-developer:~/work/opnfv/fd.io_odp4vpp_native/vpp/bin$ sudo ./vpp.sh

unix_physmem_init: use huge pages

vlib_plugin_early_init:213: plugin path ../../plugins

PKTIO: initialized loop interface.

[ERROR] error opening /sys/class/net/eth2:avahi/device/uevent

[INFO] Port: Egress enable tx_port_num=19 qmap=0x1

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.

 

ericxh@linaro-developer:~$ telnet localhost 5002

Trying ::1...

Trying 127.0.0.1...

Connected to localhost.

Escape character is '^]'.

    _______    _        _   _____  ___

 __/ __/ _ \  (_)__    | | / / _ \/ _ \

_/ _// // / / / _ \   | |/ / ___/ ___/

/_/ /____(_)_/\___/   |___/_/  /_/   

 

DBGvpp# create pktio-interface name eth0 hw-addr 00:50:43:01:40:10

 

[INFO] eth0: ppio-0,0

./vpp[3757]: received signal SIGSEGV, PC unsupported, faulting address 0x7f68269000

Failed to save post-mortem API trace to /tmp/api_post_mortem.3757

Aborted (core dumped)

 

ODP:

 

ericxh@linaro-developer:~/work/armada-17.06/bin$ sudo ./odp_pktio -i eth0

PKTIO: initialized loop interface.

[ERROR] error opening /sys/class/net/eth2:avahi/device/uevent

[INFO] Port: Egress enable tx_port_num=19 qmap=0x1

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 system info

---------------

ODP API version: 1.11.0

CPU model:       UNKNOWN

CPU freq (hz):   1400000000

Cache line size: 64

CPU count:       4

 

Running ODP appl: "odp_pktio"

-----------------

IF-count:        1

Using IFs:       eth0

Mode:            APPL_MODE_PKT_SCHED(2)

 

 

num worker threads: 2

first CPU:          2

cpu mask:           0xC

[INFO] eth0: ppio-0,0

[INFO] eth0: ppio-0,0

[INFO] PORT: Port0 - link is down

[INFO] ---- GOP ID 0 configuration ----

[INFO] Port mode               : KR

[INFO] MAC status              : disabled

[INFO] Link status             : link down

[INFO] Port speed              : 10G

[INFO] Port duplex             : full

[INFO] Port: Egress enable tx_port_num=16 qmap=0x1

PktIO PP2 has 1 RxTCs and 1 TxTCs

         mapped to 1 RxQs and 1 TxQs!!!

  created pktio:01, dev:eth0, queue mode (ATOMIC queues)

        default pktio01

linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as linux pthread. (pid=3557)

  [01] looked up pktio:01, queue mode (ATOMIC queues)

         default pktio01

linux.c:273:odpthread_run_start_routine():helper: ODP worker thread started as linux pthread. (pid=3557)

  [02] looked up pktio:01, queue mode (ATOMIC queues)

         default pktio01

 

 

 

 

Xinghao(Eric) Chen | FAE
Marvell Technology (Nanjing), LTD 3rd floor, Building #3 Chuqiaocheng, No.57 Andemen Road, Yuhuatai District, Nanjing, 210012
Phone: +86.25.6608.9644
| Mobile: +86.13764001020 |  
M A R V E L L | www.marvell.com | ericxh@...

 

From: Eric Chen
Sent: 2017824 23:17
To: 'Sreejith Surendran Nair -X (srsurend - TECH MAHINDRA LIM at Cisco)' <srsurend@...>; odp4vpp-dev@...
Cc: Pradeep Kathail (pkathail) <pkathail@...>; Eric Voit (evoit) <evoit@...>; Rashiqa Jameel -X (rajameel - TECH MAHINDRA LIM at Cisco) <rajameel@...>
Subject: RE: can odp4vpp run over ARM aarch64?

 

HI Sreejith

 

Yes, I tried this before from the “README.md”,

However it reported below error,

 

Today I managed to build the odp natively on an aarch64 box,  still the same result.

 

DBGvpp# create pktio-interface name eth1 hw-addr 00:50:43:01:40:11

[INFO] eth1: ppio-0,1

                     ./vpp[31546]: received signal SIGSEGV, PC unsupported, faulting address 0x7f4e955000

                                                                                                         Failed to save post-mortem API trace to /tmp/api_post_mortem.31546

                               Connection closed by foreign host.

 

 

 

From: Sreejith Surendran Nair -X (srsurend - TECH MAHINDRA LIM at Cisco) [mailto:srsurend@...]
Sent: 2017824 13:29
To: Eric Chen <ericxh@...>; odp4vpp-dev@...
Cc: Pradeep Kathail (pkathail) <pkathail@...>; Eric Voit (evoit) <evoit@...>; Rashiqa Jameel -X (rajameel - TECH MAHINDRA LIM at Cisco) <rajameel@...>
Subject: [EXT] RE: can odp4vpp run over ARM aarch64?

 

External Email


Hi Eric,

 

Good to hear it worked! .

 

Sorry we have to create the interface manually to appear in “sh interface” output.

 

The “README.vppodp” file in odp4vpp directory contains details on the steps to create and test  odp pktio interfaces with vpp. The procedure for odp-linux and odp-dpdk is different and is listed separately you may refer it. The startup.conf file support for ODP config with vpp is not yet available now it is tried to be added.

 

The CLI to create odp interface will be like below:

Ex:

create pktio-interface name eth0 hw-addr 00:50:43:01:40:10

 

Thanks & Regards,

Sreejith

 

 

banner5

 

Sreejith Surendran Nair

Engineer - Software

srsurend@...

Tel:

Cisco Systems, Inc.

Block C 9/7 Hosur Road
BANGALORE
560 029
India
cisco.com

 

Think before you print.

This email may contain confidential and privileged material for the sole use of the intended recipient. Any review, use, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message.

Please click here for Company Registration Information.

 

From: Eric Chen [mailto:ericxh@...]
Sent: Wednesday, August 23, 2017 7:24 PM
To: Sreejith Surendran Nair -X (srsurend - TECH MAHINDRA LIM at Cisco) <srsurend@...>; odp4vpp-dev@...
Subject: RE: can odp4vpp run over ARM aarch64?

 

 

HI Sreejith,

 

I managed to run vpp over my aarch64 box,

 

However when I “telnet localhost 5002”,  “show int”

 

I didn’t see any interfaces available, what’s wrong?

 

DBGvpp# show int

              Name               Idx       State          Counter          Count    

local0                            0        down     

DBGvpp#

 

root@linaro-developer:~/work/opnfv/fd.io_odp4vpp/vpp/bin# ifconfig

bond0     Link encap:Ethernet  HWaddr d2:bc:37:5b:32:ff 

          UP BROADCAST MASTER MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

eth0      Link encap:Ethernet  HWaddr 00:50:43:01:40:10 

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:2048

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

          Memory:f2000000-f208ffff

 

eth1      Link encap:Ethernet  HWaddr 00:50:43:01:40:11 

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:2048

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

          Interrupt:130 Memory:f2000000-f208ffff

 

eth2      Link encap:Ethernet  HWaddr 00:50:43:01:40:12 

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:2048

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

          Memory:f2000000-f208ffff

 

Do you have a reference startup.conf for  vpp over odp-linux?

 

 

Thanks

Eric

Join odp4vpp-dev@lists.fd.io to automatically receive all group messages.