AWS F1 Instance-- CL_SDE example: trying to use DPDK Pkt gen

0

So I am using the AWS F1 instance with a modified CL_SDE example from the GIT repo. We modified the HDL in the example to allow us to invert the loopbacked data through a control register, stop the internal loopback, see the last packet in/out on the control registers, and to see the packet counters....

Something super simple but exercises a lot of our libraries...

We run the testpmd tool and the packet counters we have matches the tool. We see that the testpmd tool sends in a 64 byte packet as expected and that seems to repeat. When I invert the data, the testpmd keeps reporting everything as loopbacking back just fine(no data integrity checking). When I stop the traffic via my control register, traffic stops. This all seems like the simple hardware does what I want and matches the sim we created.

We are now moving over to use the DPDK pktgen tool to generate some more strenuous and controllable traffic. I was able to get the DPDK pktgen libary to compile (I had to use the same tag for the GIT repo as the DPDK version). It appears to have built and installed just fine. However, it doesn't run well. I have tried a number of things (devbind) and all sorts of things, but I keep getting a message saying "did not find any ports to use".

In the Virtual ethernet example, the end to end example uses the PKTGEN tool to generate traffic and send it over an elastic network interface to another VM. I am just trying to get PKTGEN to talk directly to the FPGA. In the link below under end to end, I am just trying to get the PKTGEN tool to bind to the SPP directly.

Has anyone been able to get the PKTGEN tool to work directly with the FPGA?

https://github.com/aws/aws-fpga/blob/master/sdk/apps/virtual-ethernet/doc/Virtual_Ethernet_Application_Guide.md#HelloWorldLoopback

I have tried a number of things, but to no avail on this.

Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. Powered by DPDK EAL: Detected 8 lcore(s) EAL: Detected 1 NUMA nodes EAL: Auto-detected process type: PRIMARY EAL: Multi-process socket /var/run/dpdk/pg/mp_socket EAL: Selected IOVA mode 'PA' EAL: No available hugepages reported in hugepages-1048576kB EAL: Probing VFIO support... EAL: No legacy callbacks, legacy socket not created

*** Copyright (c) <2010-2020>, Intel Corporation. All rights reserved. *** Pktgen created by: Keith Wiles -- >>> Powered by DPDK <<<

Port: Name IfIndex Alias NUMA PCI

!PANIC!: *** Did not find any ports to use *** PANIC in pktgen_config_ports(): *** Did not find any ports to use *** 6: [veth_app/Pktgen-DPDK/Builddir/app/pktgen() [0x404baa]] 5: [/lib64/libc.so.6(__libc_start_main+0xea) [0x7ffa3d16013a]] 4: [veth_app/Pktgen-DPDK/Builddir/app/pktgen() [0x4047fd]] 3: [veth_app/Pktgen-DPDK/Builddir/app/pktgen() [0x42681b]] 2: [/usr/local/lib64/librte_eal.so.20.0(__rte_panic+0xba) [0x7ffa3db5aeaa]] 1: [/usr/local/lib64/librte_eal.so.20.0(rte_dump_stack+0x1b) [0x7ffa3db7a09b]] Aborted [ec2-user@ip-10-20-7-111 runtime]$

asked 2 years ago97 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions