Skip to Content.
Sympa Menu

rare-users - Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK

Subject: RARE user and assistance email list

List archive

Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK


Chronological Thread 
  • From: "Christopher Adigun" <>
  • To: mc36 <>,
  • Subject: Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK
  • Date: Wed, 04 Jan 2023 16:17:48 -0800
  • List-id: <freertr.groups.io>
  • Mailing-list: list ; contact

Still not working, dpdk interface is still down.

One error (/etc/freerouter/errors.log) I noticed:

java.net.BindException: Permission denied (Bind failed) at java.net.PlainSocketImpl.socketBind:PlainSocketImpl.java:-2/java.net.AbstractPlainSocketImpl.bind:AbstractPlainSocketImpl.java:452/java.net.ServerSocket.bind:ServerSocket.java:395/java.net.ServerSocket.bind:ServerSocket.java:349/prtLocTcp.<init>:prtLocTc
p.java:60/prtLocTcp.startServer:prtLocTcp.java:78/cfgInit.executeHWcommands:cfgInit.java:433/cfgInit.doInit:cfgInit.java:959/cfgInit.doMain:cfgInit.java:1208/router.main:router.java:24/
java.net.BindException: Permission denied (Bind failed) at java.net.PlainSocketImpl.socketBind:PlainSocketImpl.java:-2/java.net.AbstractPlainSocketImpl.bind:AbstractPlainSocketImpl.java:452/java.net.ServerSocket.bind:ServerSocket.java:395/java.net.ServerSocket.bind:ServerSocket.java:349/prtLocTcp.<init>:prtLocTc
p.java:60/prtLocTcp.startServer:prtLocTcp.java:78/cfgInit.executeHWcommands:cfgInit.java:433/cfgInit.doInit:cfgInit.java:959/cfgInit.doMain:cfgInit.java:1208/router.main:router.java:24/

I think this had to do with the line tcp2vrf 23 host 23.

So I changed it to tcp2vrf 2324 host 23. and the error stopped

I want to start with basic step of just one DPDK interface (0000:00:06.0), is the hw-config below ok:

hwid emu
tcp2vrf 2324 host 23
line tty1 127.0.0.1 20022 127.0.0.1 20021
tcp2vrf 2323 p4 23 127.0.0.1
tcp2vrf 9080 p4 9080 127.0.0.1
proc p4emu /bin/p4dpdk.bin --vdev=net_af_packet1,iface=veth0b -- 127.0.0.1 9080 1
int eth0 eth - 127.0.0.1 19999 127.0.0.1 19998
proc cpuport /bin/pcapInt.bin veth0a 19998 127.0.0.1 19999 127.0.0.1

[root@ip-172-31-38-199 freerouter]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc mq state UP group default qlen 1000
    link/ether 0a:4e:d7:7c:a3:c9 brd ff:ff:ff:ff:ff:ff
    inet 172.31.38.199/20 brd 172.31.47.255 scope global dynamic eth0
       valid_lft 2275sec preferred_lft 2275sec
5: veth0b@veth0a: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether b2:b5:b9:ca:9f:cd brd ff:ff:ff:ff:ff:ff
6: veth0a@veth0b: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 0a:bd:95:93:53:77 brd ff:ff:ff:ff:ff:ff

[ec2-user@ip-172-31-38-199 ~]$ dpdk-devbind.py -s
 
Network devices using DPDK-compatible driver
============================================
0000:00:06.0 'Elastic Network Adapter (ENA) ec20' drv=vfio-pci unused=ena
0000:00:07.0 'Elastic Network Adapter (ENA) ec20' drv=vfio-pci unused=ena
 
Network devices using kernel driver
===================================
0000:00:05.0 'Elastic Network Adapter (ENA) ec20' if=eth0 drv=ena unused=vfio-pci *Active*


If freerouter is not able to use/detect dpdk interface, does it log the error somewhere?

_._,_._,_

Groups.io Links:

You receive all messages sent to this group.

View/Reply Online (#912) | | | Mute This Topic | New Topic
Your Subscription | | Unsubscribe []

_._,_._,_



Archive powered by MHonArc 2.6.19.

Top of Page