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
    • 97.1. Prerequisites
    • 97.2. Test Case: Link Status Change
    • 97.3. Test Case: Port available
  • 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
  • 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 »
  • 97. Link Status Detection Tests
  • View page source

97. Link Status Detection Tests¶

This tests for Detect Link Status feature can be run on linux userspace. It is to check if the userspace interrupt can be received after plugging in/out the cable/fiber on specified NIC port, and if the link status can be updated correctly. Furthermore, it would be better to check if packets can be received and sent on a specified port after its link has just up. So it may need layer 2 forwarding at the same time.

For layer 2 forwarding, a packet received on a RX port (RX_PORT), it would be transmitted from a TX port (TX_PORT=RX_PORT+1) if RX_PORT is even; otherwise from a TX port (TX_PORT=RX_PORT-1) if RX_PORT is odd. Before being transmitted, the source mac address of the packet would be replaced by the mac address of the TX port, while the destination mac address would be replaced by 00:09:c0:00:00:TX_PORT_ID. The test application should be run with the wanted paired ports configured using the coremask parameter via the command line. i.e. port 0 and 1 is a valid pair, while port 1 and 2 isn’t. The test is performed by running the test application and using a traffic generator.

The link_status_interrupt application is run with EAL parameters and parameters for the application itself. This application supports three parameters for itself.

  • -p PORTMASK: hexadecimal bitmask of ports to config
  • -q NQ: number of queue per lcore (default is 1)
  • -T PERIOD: refresh period in seconds (0/10/86400: disable/default/maximum)

97.1. Prerequisites¶

If using vfio the kernel must be >= 3.6+ and VT-d must be enabled in bios.When using vfio, use the following commands to load the vfio driver and bind it to the device under test:

modprobe vfio
modprobe vfio-pci
usertools/dpdk-devbind.py --bind=vfio-pci device_bus_id

The test app need add a cmdline, --vfio-intr=int_x.

Build dpdk and examples=link_status_interrupt:

CC=gcc meson -Denable_kmods=True -Dlibdir=lib –default-library=static <build_target> ninja -C <build_target>

meson configure -Dexamples=link_status_interrupt <build_target> ninja -C <build_target>

Assume port 0 and 1 are connected to the remote ports, e.g. packet generator. To run the test application in linuxapp environment with 4 lcores, 2 ports and 2 RX queues per lcore:

$ ./<build_target>/examples/dpdk-link_status_interrupt -c f -- -q 2 -p 0x3

Also, if the ports need to be tested are different, the port mask should be changed. The lcore used to run the test application and the number of queues per lcore could be changed.

97.2. Test Case: Link Status Change¶

Run the test application as above command. Then plug out the cable/fiber, or simulate a disconnection. After several seconds, check if the link is actually off. Then plug in the cable/fiber, or simulate a connection. After several seconds, check if the link is actually up, and print its information about duplex and speed.

97.3. Test Case: Port available¶

Run the test application as above command with cable/fiber plugged out from both port 0 and 1, then plug it in. After several seconds and the link of all the ports is up. Together with packet generator, do layer 2 forwarding, and check if the packets can be received on port 0/1 and sent out on port 1/0.

Next Previous

© Copyright 2017, dpdk.org

Built with Sphinx using a theme provided by Read the Docs.