174. NIC VF Smoke Test — DPDK Test Plans Documentation

DPDK Test Plans
  • 1. DPDK ABI Stable Tests
  • 2. AddressSanitizer Smoke Test
  • 3. Port Blocklist Tests
  • 4. Basic test with CBDMA in 4K-pages test plan
  • 5. Basic 4k-pages test with DSA driver test plan
  • 6. RX/TX Checksum Offload Tests
  • 7. Coremask Tests
  • 8. ICE: Advanced RSS FOR ICE
  • 9. ICE: Advanced RSS FOR GTPU
  • 10. ICE: Advanced RSS FOR PPPOE
  • 11. ICE: Advanced RSS FOR GTPoGRE
  • 12. ICE: IAVF Advanced RSS FOR ICE
  • 13. ICE IAVF: Advanced RSS For GTPU
  • 14. ICE IAVF Support GTPoGRE in RSS
  • 15. ICE IAVF: Advanced RSS FOR VLAN/ESP/AH/L2TP/PFCP
  • 16. ICE IAVF: Advanced RSS For PPPoL2TPv2oUDP
  • 17. ICE: Advanced RSS FOR VLAN/ESP/AH/L2TP/PFCP
  • 18. ICE PF Enable Buffer Split
  • 19. ICE DCF ACL filter
  • 20. ICE DCF DISABLE ACL engine
  • 21. ICE DCF Data Path Tests
  • 22. ICE DCF Switch Filter Tests
  • 23. ICE DCF Switch Filter PPPOE Tests
  • 24. ICE DCF Switch Filter GTPU Tests
  • 25. ICE Support Flow Priority in DCF
  • 26. Benchmark the performance of header split forwarding with E810
  • 27. ICE Support Flow Priority in PF
  • 28. ICE configure QoS for vf/vsi in DCF
  • 29. ICE Enable basic HQoS on PF driver
  • 30. ICE support eCPRI protocol
  • 31. ICE:Classification:Flow Director
  • 32. ICE Support Rx Timestamp
  • 33. ICE IP FRAGMENT RTE FLOW TEST
  • 34. ICE IAVF Flow Subscription Test
  • 35. ICE IAVF IP FRAGMENT RTE FLOW TEST
  • 36. ICE IAVF Enable Packet Pacing
  • 37. IAVF: default RSS configuration
  • 38. ICE IAVF Support Rx Timestamp
  • 39. ICE IAVF: FDIR For PPPoL2TPv2oUDP
  • 40. ICE Limit Value Test
  • 41. ICE support QinQ protocol
  • 42. ICE: RSS CONFIGURE AND UPDATE
  • 43. ICE Switch Filter Tests
  • 44. ICE Switch Filter Tests
  • 45. ICE: VF support multicast address
  • 46. ICE PF enable Protocol agnostic flow offloading in RSS
  • 47. ICE PF enable Protocol agnostic flow offloading in FDIR
  • 48. Cloud filter with l4 port test plan
  • 49. ICE DCF Lifecycle Test Suite
  • 50. ICE DCF enable device reset API
  • 51. Cryptodev Performance Application Tests
  • 52. DDP GTP Qregion
  • 53. Intel® Ethernet 700 Series DDP GTP-C/GTP-U Tests
  • 54. Intel® Ethernet 700 Series DDP (Dynamic Device Personalization) Tests
  • 55. DDP PPPoE/L2TPv2/PPPoL2TPv2
  • 56. DDP L2TPV3
  • 57. Dual VLAN Offload Tests
  • 58. Dynamic Driver Configuration Tests
  • 59. Intel® Ethernet 700 Series Dynamic Mapping of Flow Types to PCTYPEs Tests
  • 60. Dynamic queue
  • 61. EEPROM Dump Test
  • 62. Ability to use external memory test plan
  • 63. External Mempool Handler Tests
  • 64. Firmware Version Test
  • 65. VEB Switch and floating VEB Tests
  • 66. Intel® Ethernet 700 Series Configuration of RSS in RTE Flow Tests
  • 67. Generic filter/flow api
  • 68. Hotplug on multi-processes
  • 69. DPDK Hotplug API Tests
  • 70. ICE:advanced iavf with FDIR capability
  • 71. ICE IAVF Support GTPoGRE in FDIR
  • 72. ICE IAVF Flexible Descriptor
  • 73. IAVF Flexible Package and driver error handle check
  • 74. IAVF enable Protocol agnostic flow offloading in FDIR
  • 75. IAVF enable Protocol agnostic flow offloading in RSS
  • 76. IEEE1588 Precise Time Protocol Tests
  • 77. 82599 Inline IPsec Tests
  • 78. One-shot Rx Interrupt Tests
  • 79. IP Pipeline Application Tests
  • 80. IP fragmentation Tests
  • 81. Generic Routing Encapsulation (GRE) Tests
  • 82. CryptoDev API Tests
  • 83. IP Reassembly Tests
  • 84. 82599 ixgbe_get_vf_queue Include Extra Information Tests
  • 85. Jumbo Frame Tests
  • 86. CryptoDev API Tests
  • 87. L2 Forwarding Tests
  • 88. test coverage for L2TPv3 and ESP
  • 89. L3 Forwarding Tests
  • 90. L3 forwarding test in LPM mode with IPV4 packets
  • 91. L3 forwarding rfc2544 test in LPM mode with IPV4 packets
  • 92. L3 forwarding test in LPM mode with IPV6 packets
  • 93. L3fwd Functional test plan
  • 94. Layer-3 Forwarding with Access Control
  • 95. ICE: Large VF for 256 queues
  • 96. Ethernet Link Flow Control Tests
  • 97. Link Status Detection Tests
  • 98. Linux Driver Tests
  • 99. vhost/virtio loopback with multi-paths and port restart test plan
  • 100. vhost/virtio-user loopback server mode test plan
  • 101. Loopback vhost/virtio-user server mode with CBDMA test plan
  • 102. Loopback vhost-user/virtio-user server mode with DSA driver test plan
  • 103. Loopback vhost/virtio multi-paths async data-path test plan
  • 104. Allowlisting Tests
  • 105. 82599 Media Access Control Security (MACsec) Tests
  • 106. MTU Check Tests
  • 107. Multiple Pthread Test
  • 108. NTB test plan
  • 109. NVGRE Tests
  • 110. vhost/virtio multi-paths loopback test plan
  • 111. NIC PF Smoke Test
  • 112. Pipeline Tests
  • 113. vhost/virtio-user pvp with multi-queues and port restart test plan
  • 114. Link Bonding for mode 4 (802.3ad)
  • 115. Bonding Tests
  • 116. stacked Bonded
  • 117. VF Bonding Tests
  • 118. VF Link Bonding for mode 4 (802.3ad)
  • 119. VF Stacked Bonded
  • 120. Poll Mode Driver Tests
  • 121. TestPMD PCAP Tests
  • 122. Intel® Ethernet 700 Series RSS - Configuring Hash Function Tests
  • 123. Reta (Redirection table) Tests
  • 124. PTYPE Mapping Tests
  • 125. vhost/virtio pvp multi-paths performance test plan
  • 126. vhost/virtio pvp multi-paths vhost single core test plan
  • 127. vhost/virtio pvp multi-paths virtio single core test plan
  • 128. PVP vhost/virtio multi-paths async data-path performance test plan
  • 129. PVP vhost/virtio-pmd async data-path perf test plan
  • 130. Intel® Ethernet 700 Series Cloud filters for QinQ steering Tests
  • 131. QoS API
  • 132. QoS Metering Tests
  • 133. QoS Scheduler Tests
  • 134. Intel® Ethernet 700 Series Configure RSS Queue Regions Tests
  • 135. Shutdown API Queue Tests
  • 136. Move RSS to rte_flow
  • 137. RSS Key Update Tests
  • 138. Prerequisites
  • 139. PMD drivers adaption for new RXTX offload APIs
  • 140. rte_flow Tests
  • 141. Prerequisites
  • 142. VF Request Queue Number From Kernel At Runtime
  • 143. VF Request Maximum Queue Number At Runtime
  • 144. VF Request Queue Number At Runtime
  • 145. Benchmark the performance of rx timestamp forwarding with E810
  • 146. Scattered Packets Tests
  • 147. Short-lived Application Tests
  • 148. Shutdown API Feature Tests
  • 149. Speed Capabilities Test
  • 150. DMA-accelerated Tx/RX operations for vhost-user PMD test plan
  • 151. PVP vhost async operation with DSA driver test plan
  • 152. vhost async data-path robust with cbdma test plan
  • 153. vhost-user interrupt mode test plan
  • 154. vhost-user interrupt mode with CBDMA test plan
  • 155. SRIOV and InterVM Communication Tests
  • 156. Stats Check tests
  • 157. Eventdev Pipeline SW PMD Tests
  • 158. Transmit Segmentation Offload (TSO) Tests
  • 159. Tx Preparation Forwarding Tests
  • 160. TestPmd rfc2544 test with IPV4/IPV6 packets
  • 161. Unified Packet Type Tests
  • 162. Userspace Ethtool Tests
  • 163. VLAN Ethertype Config Tests
  • 164. VLAN Offload Tests
  • 165. Intel® Ethernet 700/800 Series Vxlan Tests
  • 166. L2fwd Jobstats Test
  • 167. vhost/virtio-user loopback with multi-queues test plan
  • 168. DPDK Telemetry API Tests
  • 169. CompressDev ISA-L PMD Tests
  • 170. CompressDev QAT PMD Tests
  • 171. CompressDev ZLIB PMD Tests
  • 172. Flexible pipeline package processing on E822 NIC mode Tests
  • 173. IPv4 Multicast
  • 174. ethtool stats
  • 175. metrics
  • 176. VEB Switch and floating VEB Tests
  • 177. VFD as SRIOV Policy Manager Tests
  • 178. VF One-shot Rx Interrupt Tests
  • 179. VF Jumboframe Tests
  • 180. VFD as SRIOV Policy Manager Tests
  • 181. VF MAC Filter Tests
  • 182. VF Offload
  • 183. VF Packet RxTX Tests
  • 184. VF PF Reset Tests
  • 185. VF Port Start Stop Tests
  • 186. VF RSS - Configuring Hash Function Tests
  • 187. Benchmark the performance of VF single core forwarding
  • 188. NIC VF Smoke Test
    • 188.1. Description
    • 188.2. Prerequisites
    • 188.3. Test Case 1: test enable and disable jumbo frame
    • 188.4. Test Case 2: test RSS
    • 188.5. Test Case 3: test reset RX/TX queues
  • 189. VF to VF Bridge Tests
  • 190. VF VLAN Tests
  • 191. VF L3 forwarding kernel PF tests
  • 192. VF L3 forwarding kernel PF test in EM mode
  • 193. VF L3 forwarding kernel PF test in LPM mode with IPV4 packets
  • 194. VF L3 forwarding kernel PF rfc2544 test in LPM mode with IPV4 packets
  • 195. VF L3 forwarding kernel PF test in LPM mode with IPV6 packets
  • 196. Kernel PF + IAVF test plan
  • 197. Vhost/Virtio multiple queue qemu test plan
  • 198. Vhost MTU Test Plan
  • 199. Vhost User Live Migration Tests
  • 200. vhost PMD Xstats test plan
  • 201. VM Power Management Tests
  • 202. VM Power Management Tests (Policy/Turbo)
  • 203. power bidirection channel test plan
  • 204. Power Policy Based on Branch Ratio Tests
  • 205. Power Lib Empty Poll Test
  • 206. Power PBF Tests
  • 207. PMD power management test plan
  • 208. Power Lib Based on Intel Pstate Driver
  • 209. Power Lib Telemetry Test Plan
  • 210. Power managerment throughput test plan
  • 211. VMDQ Tests
  • 212. VF L2 Forwarding Tests
  • 213. VF L3 Forwarding Performance Tests
  • 214. softnic PMD
  • 215. VM hotplug Tests
  • 216. Malicious Driver Detection (MDD) Tests
  • 217. Malicious driver event indication process in Intel® Ethernet 700 Series PF driver
  • 218. vhost event idx interrupt mode test plan
  • 219. vhost event idx interrupt modei with CBDMA test plan
  • 220. vhost/virtio-pmd interrupt mode test plan
  • 221. vhost/virtio-pmd interrupt mode with cbdma test plan
  • 222. vhost/virtio-user interrupt mode test plan
  • 223. vhost/virtio-user interrupt mode with cbdma test plan
  • 224. Vhost_user virtio_user interrupt test with power monitor mode test plan
  • 225. virtio event idx interrupt mode test plan
  • 226. Virtio event idx interrupt mode with cbdma test plan
  • 227. Cryptodev virtio ipsec Application Tests
  • 228. Cryptodev virtio Performance Application Tests
  • 229. vhost/virtio-user smoke test plan
  • 230. vm2vm vhost-user/virtio-net test plan
  • 231. VM2VM vhost-user/virtio-net with CBDMA test plan
  • 232. VM2VM vhost-user/virtio-net with DSA driver test plan
  • 233. vm2vm vhost-user/virtio-pmd test plan
  • 234. vm2vm vhost-user/virtio-pmd with cbdma test plan
  • 235. vm2vm vhost-user/virtio-pmd with DSA driver test plan
  • 236. DPDK GRO lib test plan
  • 237. DPDK GRO lib with cbdma test plan
  • 238. DPDK GSO lib test plan
  • 239. Vswitch sample test with vhost async data path test plan
  • 240. Vswitch sample test with vhost async data path test plan
  • 241. Vswitch PVP multi-paths performance with CBDMA test plan
  • 242. I40E VXLAN-GPE Support Tests
  • 243. vhost/virtio different qemu version test plan
  • 244. Vhost/virtio-user pvp share lib test plan
  • 245. vhost/virtio-user pvp with 2M hugepage test plan
  • 246. CryptoDev virtio unit Tests
  • 247. Virtio_user for container networking test plan
  • 248. Eventdev Tests
  • 249. Eventdev Pipeline Perf Tests
  • 250. vhost/virtio qemu multi-paths and port restart test plan
  • 251. vhost-user/virtio pvp reconnect test plan
  • 252. vhost-user/virtio-pmd pvp bonding test plan
  • 253. vhost/virtio-user pvp with 4K-pages test plan
  • 254. Virtio-pmd primary/secondary process test plan
  • 255. vhost 1023 ethports test plan
  • 256. vhost/virtio-pmd qemu regression test plan
  • 257. Virtio_user as an exceptional path test plan
  • 258. Meson tests
  • 259. Sample Application Tests: Cmdline Example
  • 260. Sample Application Tests: Hello World Example
  • 261. Sample Application Tests: Keep Alive Example
  • 262. Sample Application Tests: Multi-Process
  • 263. Sample Application Tests: Multi-Process
  • 264. Sample Application Tests: RX/TX Callbacks
  • 265. Sample Application Tests: Basic Forwarding/Skeleton Application
  • 266. Sample Application Tests: Timer Example
  • 267. Sample Application Tests: IEEE1588
  • 268. Sample Application Tests: Packet distributor
  • 269. Sample Application Tests: Elastic Flow Distributor
  • 270. Example Build
  • 271. flow classify
  • 272. DPDK Hugetlbfs Mount Size Feature Test Plan
  • 273. Benchmark the performance of single core forwarding with XXV710 and 82599/500 Series 10G
  • 274. DPDK IAVF API Tests
  • 275. packet capture
  • 276. Sample Application Tests: Packet Ordering
  • 277. Wireless device for Xeon SP 83xx/63xx-D (bbdev) for Turbo decoding/encoding
  • 278. FIPS Validation Application Tests
  • 279. Flow Filtering Tests
  • 280. DPDK PMD for AF_XDP Tests
  • 281. CBDMA test plan
  • 282. DSA test plan
  • 283. Flexible RXd Test Suites
  • 284. IPSec gateway and library test plan
  • 285. Port Control Tests
  • 286. Port Representor Tests
  • 287. vm2vm vhost-user/virtio-user test plan
  • 288. VM2VM vhost-user/virtio-user with CBDMA test plan
  • 289. VM2VM vhost-user/virtio-user with DSA driver test plan
  • 290. Intel® Ethernet 700 Series: Support of RX Packet Filtering using VMDQ & DCB Features
  • 291. ACL Test Plan
  • 292. Power Negative Test Plan
DPDK Test Plans
  • Docs »
  • 188. NIC VF Smoke Test
  • View page source
188. NIC VF Smoke Test¶

188.1. Description¶

Test the basic functions of dpdk. 1. Port connection status. 2. Launch testpmd normally. 3. Basic rx and tx.

188.2. Prerequisites¶

  1. Hardware:

    82599/Intel® Ethernet 700 Series/Intel® Ethernet 800 Series

  2. Software:

    dpdk: http://dpdk.org/git/dpdk scapy: http://www.secdev.org/projects/scapy/

  3. Compile DPDK:

    CC=gcc meson -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc ninja -C x86_64-native-linuxapp-gcc
  4. Get the pci device id of DUT, for example:

    ./usertools/dpdk-devbind.py -s 0000:86:01.0 'Device 1593' if=enp134s0f0 drv=ice unused=vfio-pci
  5. Generate 1 VFs on PF:

    echo 1 > /sys/bus/pci/devices/0000:86:01.0/sriov_numvfs ./usertools/dpdk-devbind.py -s 0000:86:01.0 'Ethernet Adaptive Virtual Function 1889' if=enp134s1 drv=iavf unused=vfio-pci
  6. Set VF MAC address:

    ip link set enp134s0f0 vf 0 mac 00:01:23:45:67:89
  7. Bind VF to dpdk driver:

    modprobe vfio-pci ./usertools/dpdk-devbind.py -b vfio-pci 0000:86:01.0
  8. Launch dpdk on VF:

if test IAVF, start up VF port:

./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:86:01.0 --file-prefix=pf -- -i --rxq=4 --txq=4 testpmd> set fwd mac testpmd> set verbose 3 testpmd> start testpmd> show port info all

if test DCF, set VF port to dcf and start up:

Enable kernel trust mode: ip link set $PF_INTF vf 0 trust on ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c 0xf -n 4 -a 0000:86:01.0,cap=dcf --file-prefix=pf -- -i --rxq=4 --txq=4

Note

make dcf as full feature pmd is dpdk22.07 feature, and only support E810 series nic.

188.3. Test Case 1: test enable and disable jumbo frame¶

  1. when launch dpdk on VF, add parameter ‘–max-pkt-len=9600 –tx-offloads=0x00008000’

  2. set fwd mode is mac:

    testpmd> set fwd mac testpmd> set verbose 3 testpmd> start
  3. Send a packet with size 9601 bytes

    testpmd> show port stats 0 ######################## NIC statistics for port 0 ######################## RX-packets: 0 RX-errors: 1 RX-bytes: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 ############################################################################

Verify that TX-bytes on port 0 and RX-bytes on port 0 are 0.

  1. Send a packet with size 9600 bytes

    testpmd> show port stats 0 ######################## NIC statistics for port 0 ######################## RX-packets: 1 RX-errors: 0 RX-bytes: 9600 TX-packets: 1 TX-errors: 0 TX-bytes: 9600 ############################################################################

Verify that TX-bytes on port 0 and RX-bytes on port 0 are 9600.

  1. Set mtu is 1500

    testpmd> port config mtu 1500
  2. Send a packet with size 1518 bytes

    testpmd> show port stats 0 ######################## NIC statistics for port 0 ######################## RX-packets: 1 RX-errors: 0 RX-bytes: 1518 TX-packets: 1 TX-errors: 0 TX-bytes: 1518 ############################################################################

Verify that TX-bytes on port 0 and RX-bytes on port 0 are 1518

  1. Send a packet with size 1519 bytes

    testpmd> show port stats 0 ######################## NIC statistics for port 0 ######################## RX-packets: 0 RX-errors: 1 RX-bytes: 0 TX-packets: 0 TX-errors: 0 TX-bytes: 0 ############################################################################

Verify that TX-bytes on port 0 and RX-bytes on port 1 are 0

188.4. Test Case 2: test RSS¶

  1. set fwd mode is rxonly:

    testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start
  1. Send different hash types’ packets with different keywords, then check rx port

    could receive packets by different queues:

    sendp([Ether(dst="00:01:23:45:67:89")/IP(src="192.168.0.4", dst=RandIP())], iface="eth3")

188.5. Test Case 3: test reset RX/TX queues¶

  1. Run port stop all to stop all ports.
  2. Run port config all rxq 2 to change the number of receiving queues to two.
  3. Run port config all txq 2 to change the number of transmitting queues to two.
  4. Run port start all to restart all ports.
  5. Check with show config rxtx that the configuration for these parameters changed.
  6. Run start again to restart the forwarding, then start packet generator to transmit and receive packets, and check if testpmd is able to receive and forward packets successfully.

Từ khóa » Thu Vf