1. ip_fragmentation 畫出程式流程圖,從Function判斷要砍掉哪個
2. Remove unrelated functions, keep only initial and RTE setup then finally print ipv4 informations. Github
3. ONLY supply ipv4,TCP/UDP.
4. Sucess install OVS+DPDK and bind NIC with DPDK driver,but can't run DPDK example。
原本以為是 ./configure OVS的參數問題,看完官方文件覺得不是該問題。
inux@linux-SYS-7048A-T:~/dpdk/dpdk-stable-17.05.2/examples/ip_fragmentation$ !131 sudo ./build/ip_fragmentation -l 2,4 -n 2 -- -p 0x3 -q 2 EAL: Detected 32 lcore(s) EAL: No free hugepages reported in hugepages-1048576kB EAL: Error - exiting with code: 1 Cause: Cannot create lock on '/var/run/.rte_config'. Is another primary process running?rte_config (記憶體管理結構)
./rte-app [-c COREMASK | -l CORELIST] [-n NUM] [-b <domain:bus:devid.func>] \ [--socket-mem=MB,...] [-d LIB.so|DIR] [-m MB] [-r NUM] [-v] [--file-prefix] \ [--proc-type <primary|secondary|auto>] [-- xen-dom0]--file-prefix: The prefix text used for hugepage filenames.18.2.3. Running Multiple Independent DPDK Applications
linux@linux-SYS-7048A-T:~/dpdk/dpdk-stable-17.05.2/examples/ip_fragmentation$ sudo ./build/ip_fragmentation --file-prefix -l 2,4 -n 2 -- -p 0x3 -q 2EAL: Detected 32 lcore(s)EAL: No free hugepages reported in hugepages-1048576kBEAL: Probing VFIO support...EAL: VFIO support initializedEAL: PCI device 0000:03:00.0 on NUMA socket 0EAL: probe driver: 8086:10fb net_ixgbeEAL: Cannot open /dev/vfio/29: Device or resource busyEAL: Requested device 0000:03:00.0 cannot be usedEAL: PCI device 0000:03:00.1 on NUMA socket 0EAL: probe driver: 8086:10fb net_ixgbeEAL: Cannot open /dev/vfio/30: Device or resource busyEAL: Requested device 0000:03:00.1 cannot be usedEAL: PCI device 0000:05:00.0 on NUMA socket 0EAL: probe driver: 8086:1533 net_e1000_igbEAL: PCI device 0000:06:00.0 on NUMA socket 0EAL: probe driver: 8086:1533 net_e1000_igbEAL: PCI device 0000:07:00.0 on NUMA socket 0EAL: probe driver: 8086:10fb net_ixgbeEAL: PCI device 0000:07:00.1 on NUMA socket 0EAL: probe driver: 8086:10fb net_ixgbeEAL: Error - exiting with code: 1 Cause: No ports found!附註:
安裝參考資料