F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.82k stars 891 forks source link

Does F-stack support ENA on AWS? #790

Open zcuder opened 10 months ago

zcuder commented 10 months ago

hi fstack experts, currently I am setting up f-stack on aws, while it is using Elastic Network Adapter(ENA) on AWS. dpdk/usertools/dpdk-devbind.py -s

Network devices using DPDK-compatible driver

0000:00:06.0 'Elastic Network Adapter (ENA) ec20' drv=igb_uio unused=ena

I am trying to setup the demo program. but it fails saying not support promiscuous mode ./dpdk/build/app/dpdk-testpmd EAL: Detected CPU lcores: 8 EAL: Detected NUMA nodes: 1 EAL: Detected static linkage of DPDK EAL: Multi-process socket /var/run/dpdk/rte/mp_socket EAL: Selected IOVA mode 'PA' EAL: pci_mknod_uio_dev(): mknod() failed File exists EAL: Cannot create /dev/uio0 EAL: Probe PCI driver: net_ena (1d0f:ec20) device: 0000:00:06.0 (socket 0) TELEMETRY: No legacy callbacks, legacy socket not created testpmd: create a new mbuf pool : n=203456, size=2176, socket=0 testpmd: preferred mempool ops selected: ring_mp_mc

Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.

Configuring Port 0 (socket 0) Port 0: 06:D7:F4:9F:34:DA Checking link statuses... Done Error during enabling promiscuous mode for port 0: Operation not supported - ignore

Not sure if this error is relating to F-stack supporting ENA issue, or might be something else misconfigured. Any help would be appreciated

awaiskhalidawan commented 8 months ago

Hi @zcuder , It is a warning. You can ignore this. The DPDK driver for AWS ENA network card doesn't have the function to enable promiscuous mode that's why its saying that operation not supported. You can still read all the packets from the AWS ENA NIC using your DPDK APP such as test-pmd.

I was able to deploy my DPDK application on AWS EC2 instance and read packets from ENA adapter.

Let me know if you need further explanation.

Chithesus commented 6 months ago

dpdk support aws ,so fstack support ena on aws. Be careful about the security group or aws setting on aws (open the port ...sm like that),