Subject: RARE user and assistance email list
List archive
- From: "mc36" <>
- To: ,
- Subject: Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK
- Date: Thu, 5 Jan 2023 18:56:35 +0100
- List-id: <freertr.groups.io>
- Mailing-list: list ; contact
hi,
nevermind about recompiling.... i've made every error (except the memory
allocations) to warning with the below change:
https://github.com/rare-freertr/freeRtr/commit/a59b34ecaa14ad276267cb0f5542678c219b0d71
as far as i know the fedora is daily rebuilds itself automatically, so just
wait a day and upgrade afterwards...
br,
cs
On 1/5/23 16:46, mc36 wrote:
hi,
let's dissect this again to two prats... the systemctl output is fully eal
errors...
messages starting with eal are from the dpdk... its quite cryptic but finally
it starts,
i know this becasue the final message is from p4dpdk noting that it needs at
least 2 ports...
it can be easily that without root, dpdk was not able to grab the nics...
the second, when you run it by hand is more interesting...
i recognize a lot of messages from p4dpdk trying to bring up the port then
finally it terminates:
https://github.com/rare-freertr/freeRtr/blob/master/misc/native/p4emu_dpdk.c#L542
here is my suggestion:
sudo dnf install gcc clang dpdk-dev
wget freertr.org/rtr.zip
unzip rtr.zip
cd misc/native
editor p4emu_dpdk.c #comment out the whole line 542 completely containing the
message "error setting promiscuous mode"
./c.sh
sudo ../../binTmp/p4dpdk.bin --vdev=net_af_packet1,iface=veth0b -- 127.0.0.1
9080 2
if it starts this way and you'll have the packets finally, i'll make it a
warning,
then you'll have just do your regular update to have it from the daily
recompilations...
thanks,
cs
On 1/5/23 16:01, Christopher Adigun wrote:
No improvement, the interface is still down.
I decided to change the user from /*freerouter* /to /*root* /in the systemd
file /usr/lib/systemd/system/freerouter.service, now I get the following
error:
freerouter.service - Main process of freerouter
Loaded: loaded (/usr/lib/systemd/system/freerouter.service;
disabled; vendor preset: disabled)
Active: active (running) since Thu 2023-01-05 13:19:21 UTC; 4s ago
Main PID: 24397 (java)
CGroup: /system.slice/freerouter.service
24397
/usr/lib/jvm/jre-11-openjdk/bin/java -jar /usr/share/java/rtr.jar router
/etc/freerouter/rtr-
24491 /bin/pcapInt.bin veth0a
19998 127.0.0.1 19999 127.0.0.1
Jan 05 13:19:23 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24486]: EAL: Requested device 0000:00:07.0 cannot be used
Jan 05 13:19:24 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24486]: TELEMETRY: No legacy callbacks, legacy socket not created
Jan 05 13:19:24 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24486]: EAL: Error - exiting with code: 1
Cause:
Jan 05 13:19:25 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24857]: EAL: Cannot open VFIO container /dev/vfio/vfio, error 2
(No such file or directory)
Jan 05 13:19:25 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24857]: EAL: VFIO support could not be initialized
Jan 05 13:19:25 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24857]: EAL: Requested device 0000:00:06.0 cannot be used
Jan 05 13:19:25 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24857]: EAL: Requested device 0000:00:07.0 cannot be used
Jan 05 13:19:26 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24857]: TELEMETRY: No legacy callbacks, legacy socket not created
Jan 05 13:19:26 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24857]: EAL: Error - exiting with code: 1
Cause:
Jan 05 13:19:26 ip-172-31-38-199.eu-west-1.compute.internal
p4dpdk.bin[24857]: at least 2 ports needed
So I decided to run *//bin/p4dpdk.bin --vdev=net_af_packet1,iface=veth0b --
127.0.0.1 9080 2/* manually and I got the promiscuous error:
/*[root@ip-172-31-38-199 log]# /bin/p4dpdk.bin --vdev=net_af_packet1,iface=veth0b -- 127.0.0.1 9080 2*/ EAL: Detected CPU lcores: 8 EAL: Detected NUMA nodes: 1 EAL: Detected shared linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: No available 1048576 kB hugepages reported EAL: VFIO support initialized EAL: Using IOMMU type 8 (No-IOMMU) EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket 0) EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:07.0 (socket 0) TELEMETRY: No legacy callbacks, legacy socket not created 8 cores and 3 ports detected... dpdk version: DPDK 21.11.2 openssl version: OpenSSL 1.1.1g FIPS 21 Apr 2020 connecting 127.0.0.1 9080. cpu port is #2 of 3... there will be 0 forwarding only cores... there will be 8191 mbufs, each 2048 bytes, 250 cached... there will be 1024 rx and 1024 tx descriptors, 512 tx and 512 fwd mbufs... there will be 32 bursts and maybe 100 sleeps... opening mempool on socket 0... opening port 0 named 0000:00:06.0 on socket 0 on lcore 0 for rx and 0 for tx... devinfo: pmd=net_ena, mtu=128..9216, bufs=64, pktl=9234, rxque=10, txque=8, rxcapa=0000200e, txcapa=0000800e... configuring port: offloads rx=00002000, tx=00008000, pktlen=2048 EAL: Error - exiting with code: 1 Cause: error setting promiscuous mode
N.B - I have tested the dpdk interfaces in VPP and it works.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#930): https://groups.io/g/freertr/message/930
Mute This Topic: https://groups.io/mt/96077211/6413194
Group Owner:
Unsubscribe: https://groups.io/g/freertr/unsub []
-=-=-=-=-=-=-=-=-=-=-=-
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, (continued)
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/04/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/04/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Message not available
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Message not available
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/05/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/06/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/06/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/06/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/06/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/06/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Edgard, 01/10/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/04/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/04/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, Christopher Adigun, 01/02/2023
- Re: [RARE-users] [freertr] Freertr Install On AWS and DPDK, mc36, 01/02/2023
Archive powered by MHonArc 2.6.19.