ansyun / dpdk-ans

ANS(Accelerated Network Stack) on DPDK, DPDK native TCP/IP stack.
https://ansyun.com
BSD 3-Clause "New" or "Revised" License
1.15k stars 322 forks source link

DPDK ANS environment rx vlan strip offload issue on Azure #90

Closed ader1990 closed 5 years ago

ader1990 commented 5 years ago

If I run the following code, I get an RX offload error:

root@role-0:~/dpdk-ans/ans# ./build/ans -c 0x2 -n 2 --pci-whitelist "0003:00:02.0"  -- -p 0x1 --config="(0,0,1)"
EAL: Detected 16 lcore(s)
EAL: Detected 1 NUMA nodes
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: 1 hugepages of size 1073741824 reserved, but no mounted hugetlbfs found for that size
EAL: Probing VFIO support...
EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using unreliable clock cycles !
EAL: Driver cannot attach the device (0002:00:02.0)
EAL: Failed to attach device on primary process
net_failsafe: sub_device 0 probe failed (No such file or directory)
rte_pmd_tap_probe(): Initializing pmd_tap for net_tap_vsc0 as dtap0
EAL: Driver cannot attach the device (0003:00:02.0)
EAL: Failed to attach device on primary process
net_failsafe: sub_device 0 probe failed (File exists)
rte_pmd_tap_probe(): Initializing pmd_tap for net_tap_vsc1 as dtap1

Start to Init port
         port 0:
         port name net_failsafe:
         max_rx_queues 16: max_tx_queues:16
         rx_offload_capa 0x200e: tx_offload_capa:0x802e
         Creating queues: rx queue number=1 tx queue number=1...
Ethdev port_id=0 requested Rx offloads 0xf doesn't match Rx offloads capabilities 0x200e in rte_eth_dev_configure()
EAL: Error - exiting with code: 1
  Cause: Cannot configure device: err=-22, port=0

It seems the offending commit is: https://github.com/ansyun/dpdk-ans/commit/1f513a6b77e83277018c69285ad72017b9c1626a, which introduced VLAN STRIP offloading. If I remove the commit, I can start the ANS environment.

bluenet13 commented 5 years ago

Thanks for your comments. Already fix it, please try it again. We have never run ans on azure , can you share more test results? Our email is anssupport@163.com. -:)

ader1990 commented 5 years ago

@bluenet13 I need to make it functional for the moment :-), I ve opened another issue with the errors I am getting.