DPDK Test Plans
  • 1. DPDK ABI Stable Tests
  • 2. Port Blacklist Tests
  • 3. RX/TX Checksum Offload Tests
  • 4. Cloud filter Support through Ethtool Tests
  • 5. Coremask Tests
  • 6. CVL: Advanced RSS FOR CVL
  • 7. CVL: Advanced RSS FOR GTPU
  • 8. Pattern: outer ipv4 + inner ipv4
  • 9. Pattern: outer ipv4 + inner ipv6
  • 10. Pattern: outer ipv6 + inner ipv4
  • 11. Pattern: outer ipv6 + inner ipv6
  • 12. symmetric cases
  • 13. Pattern: symmetric outer ipv4 + inner ipv4
  • 14. Pattern: symmetric outer ipv4 + inner ipv6
  • 15. Pattern: symmetric outer ipv6 + inner ipv4
  • 16. Pattern: symmetric outer ipv6 + inner ipv6
  • 17. CVL: IAVF Advanced RSS FOR CVL
  • 18. CVL IAVF: Advanced RSS For GTPU
  • 19. Pattern: outer ipv4 + inner ipv4
  • 20. Pattern: outer ipv4 + inner ipv6
  • 21. Pattern: outer ipv6 + inner ipv4
  • 22. Pattern: outer ipv6 + inner ipv6
  • 23. symmetric cases
  • 24. Pattern: symmetric outer ipv4 + inner ipv4
  • 25. Pattern: symmetric outer ipv4 + inner ipv6
  • 26. Pattern: symmetric outer ipv6 + inner ipv4
  • 27. Pattern: symmetric outer ipv6 + inner ipv6
  • 28. CVL IAVF: Advanced RSS FOR VLAN/ESP/AH/L2TP/PFCP
  • 29. CVL: Advanced RSS FOR PPPOE/VLAN/ESP/AH/L2TP/PFCP
  • 30. CVL DCF ACL filter
  • 31. Common steps for launching DCF
  • 32. Test Case: Launch DCF and do macfwd
  • 33. Test Case: Check default rss for L3
  • 34. Test Case: Check default rss for L4
  • 35. Test Case: Create rule with to original VF action
  • 36. Test Case: Measure performance of DCF interface
  • 37. CVL DCF Switch Filter Tests
  • 38. CVL:Classification:Flow Director
  • 39. CVL Limit Value Test
  • 40. CVL: RSS CONFIGURE AND UPDATE
  • 41. CVL Switch Filter Tests
  • 42. CVL: VF support multicast address
  • 43. Cloud filter with l4 port test plan
  • 44. CVL DCF Lifecycle Test Suite
  • 45. Cryptodev Performance Application Tests
  • 46. DDP GTP Qregion
  • 47. Fortville DDP GTP-C/GTP-U Tests
  • 48. Fortville DDP (Dynamic Device Personalization) Tests
  • 49. DDP PPPoE/L2TPv2/PPPoL2TPv2
  • 50. DDP L2TPV3
  • 51. Dual VLAN Offload Tests
  • 52. Dynamic Driver Configuration Tests
  • 53. Fortville Dynamic Mapping of Flow Types to PCTYPEs Tests
  • 54. Dynamic queue
  • 55. EEPROM Dump Test
  • 56. External Tag (E-tag) Tests
  • 57. Ability to use external memory test plan
  • 58. External Mempool Handler Tests
  • 59. Niantic Flow Director Tests
  • 60. Firmware Version Test
  • 61. VEB Switch and floating VEB Tests
  • 62. Flow classification for softnic PMD
  • 63. Fortville Granularity Configuration of RSS and 32-bit GRE key Tests
  • 64. Fortville Configuration of RSS in RTE Flow Tests
  • 65. FM10k FTAG Forwarding Tests
  • 66. Generic Filter Tests
  • 67. Generic filter/flow api
  • 68. Hotplug on multi-processes
  • 69. DPDK Hotplug API Tests
  • 70. CVL:advanced iavf with FDIR capability
  • 71. IAVF Flexible Package and driver error handle check
  • 72. IEEE1588 Precise Time Protocol Tests
  • 73. Niantic Inline IPsec Tests
  • 74. One-shot Rx Interrupt Tests
  • 75. IP Pipeline Application Tests
  • 76. IP fragmentation Tests
  • 77. Generic Routing Encapsulation (GRE) Tests
  • 78. CryptoDev API Tests
  • 79. IP Reassembly Tests
  • 80. Niantic ixgbe_get_vf_queue Include Extra Information Tests
  • 81. Jumbo Frame Tests
  • 82. Kernel NIC Interface (KNI) Tests
  • 83. CryptoDev API Tests
  • 84. L2 Forwarding Tests
  • 85. test coverage for L2TPv3 and ESP
  • 86. L3 Forwarding Exact Match Tests
  • 87. L3 Forwarding Tests
  • 88. Layer-3 Forwarding with Access Control
  • 89. CVL: Large VF for 256 queues
  • 90. Ethernet Link Flow Control Tests
  • 91. Link Status Detection Tests
    • 91.1. Prerequisites
    • 91.2. Test Case: Link Status Change
    • 91.3. Test Case: Port available
  • 92. Linux Driver Tests
  • 93. vhost/virtio loopback with multi-paths and port restart test plan
  • 94. vhost/virtio-user loopback server mode test plan
  • 95. Whitelisting Tests
  • 96. Niantic Media Access Control Security (MACsec) Tests
  • 97. metering and policing
  • 98. MTU Check Tests
  • 99. Multiple Pthread Test
  • 100. NIC Statistics Tests
  • 101. NTB test plan
  • 102. Fortville NVGRE Tests
  • 103. vhost/virtio multi-paths loopback test plan
  • 104. vhost/virtio pvp performance test plan
  • 105. perf vm2vm vhost-user/virtio-net test plan
  • 106. Pipeline Tests
  • 107. vhost/virtio-user pvp with multi-queues and port restart test plan
  • 108. Link Bonding for mode 4 (802.3ad)
  • 109. Bonding Tests
  • 110. stacked Bonded
  • 111. Poll Mode Driver Tests
  • 112. TestPMD PCAP Tests
  • 113. Fortville RSS - Configuring Hash Function Tests
  • 114. Niantic Reta (Redirection table) Tests
  • 115. PTYPE Mapping Tests
  • 116. vhost/virtio pvp multi-paths performance test plan
  • 117. vhost/virtio pvp multi-paths vhost single core test plan
  • 118. vhost/virtio pvp multi-paths virtio single core test plan
  • 119. Fortville Cloud filters for QinQ steering Tests
  • 120. QoS API
  • 121. QoS Metering Tests
  • 122. QoS Scheduler Tests
  • 123. Fortville Configure RSS Queue Regions Tests
  • 124. Shutdown API Queue Tests
  • 125. Move RSS to rte_flow
  • 126. RSS Key Update Tests
  • 127. Prerequisites
  • 128. PMD drivers adaption for new RXTX offload APIs
  • 129. Rte_flow Priority Tests
  • 130. rte_flow Tests
  • 131. Prerequisites
  • 132. VF Request Queue Number From Kernel At Runtime
  • 133. VF Request Maximum Queue Number At Runtime
  • 134. VF Request Queue Number At Runtime
  • 135. Scattered Packets Tests
  • 136. Short-lived Application Tests
  • 137. Shutdown API Feature Tests
  • 138. Speed Capabilities Test
  • 139. Software/hardware Toeplitz hash consistence test suite
  • 140. DMA-accelerated Tx operations for vhost-user PMD test plan
  • 141. vhost-user interrupt mode test plan
  • 142. SRIOV and InterVM Communication Tests
  • 143. Stability Tests
  • 144. Stats Check tests
  • 145. Eventdev Pipeline SW PMD Tests
  • 146. Transmit Segmentation Offload (TSO) Tests
  • 147. Tx Preparation Forwarding Tests
  • 148. Unified Packet Type Tests
  • 149. Userspace Ethtool Tests
  • 150. VLAN Ethertype Config Tests
  • 151. VLAN Offload Tests
  • 152. Fortville Vxlan Tests
  • 153. DPDK PMD for AF_XDP Tests
  • 154. L2fwd Jobstats Test
  • 155. Load Balancer
  • 156. vhost/virtio-user loopback with multi-queues test plan
  • 157. DPDK Telemetry API Tests
  • 158. CompressDev ISA-L PMD Tests
  • 159. CompressDev QAT PMD Tests
  • 160. CompressDev ZLIB PMD Tests
  • 161. Flexible pipeline package processing on CPK NIC mode Tests
  • 162. IPv4 Multicast
  • 163. ethtool stats
  • 164. metrics
  • 165. VEB Switch and floating VEB Tests
  • 166. VFD as SRIOV Policy Manager Tests
  • 167. VF One-shot Rx Interrupt Tests
  • 168. VF Jumboframe Tests
  • 169. VFD as SRIOV Policy Manager Tests
  • 170. VF MAC Filter Tests
  • 171. VF Offload
  • 172. VF Packet RxTX Tests
  • 173. VF PF Reset Tests
  • 174. VF Port Start Stop Tests
  • 175. VF RSS - Configuring Hash Function Tests
  • 176. Benchmark the performance of VF single core forwarding
  • 177. VF to VF Bridge Tests
  • 178. VF VLAN Tests
  • 179. Kernel PF + IAVF test plan
  • 180. Vhost/Virtio multiple queue qemu test plan
  • 181. Vhost MTU Test Plan
  • 182. Vhost User Live Migration Tests
  • 183. vhost PMD Xstats Tests restart test plan
  • 184. VM Power Management Tests
  • 185. VM Power Management Tests (Policy/Turbo)
  • 186. power bidirection channel test plan
  • 187. Power Policy Based on Branch Ratio Tests
  • 188. Power Lib Empty Poll Test
  • 189. Power PBF Tests
  • 190. Power Lib Based on Intel Pstate Driver
  • 191. Power Lib Telemetry Test Plan
  • 192. VMDQ Tests
  • 193. VF L3 Forwarding Performance Tests
  • 194. softnic PMD
  • 195. VM hotplug Tests
  • 196. Malicious Driver Detection (MDD) Tests
  • 197. Malicious driver event indication process in FVL PF driver
  • 198. Virtio-1.0 Support Tests
  • 199. vhost event idx interrupt mode test plan
  • 200. vhost/virtio-pmd interrupt mode test plan
  • 201. vhost/virtio-user interrupt mode test plan
  • 202. virtio event idx interrupt mode test plan
  • 203. Cryptodev virtio ipsec Application Tests
  • 204. Cryptodev virtio Performance Application Tests
  • 205. vhost/virtio-user smoke test plan
  • 206. vm2vm vhost-user/virtio-net test plan
  • 207. vm2vm vhost-user/virtio-pmd test plan
  • 208. DPDK GRO lib test plan
  • 209. DPDK GSO lib test plan
  • 210. vhost dequeue zero-copy test plan
  • 211. Vswitch sample test with vhost async data path test plan
  • 212. I40E VXLAN-GPE Support Tests
  • 213. vhost/virtio different qemu version test plan
  • 214. Vhost/virtio-user pvp share lib test plan
  • 215. Vhost-user built-in net driver test plan
  • 216. vhost/virtio-user pvp with 2M hugepage test plan
  • 217. CryptoDev virtio unit Tests
  • 218. Virtio_user for container networking test plan
  • 219. Eventdev Tests
  • 220. Eventdev Pipeline Perf Tests
  • 221. vhost/virtio qemu multi-paths and port restart test plan
  • 222. vhost-user/virtio pvp reconnect test plan
  • 223. vhost-user/virtio-pmd pvp bonding test plan
  • 224. vhost/virtio-user pvp with 4K-pages test plan
  • 225. Virtio-pmd primary/secondary process test plan
  • 226. vhost 1023 ethports test plan
  • 227. vhost/virtio-pmd qemu regression test plan
  • 228. Virtio_user as an exceptional path test plan
  • 229. Unit Tests: Cmdline
  • 230. Unit Tests: CRC
  • 231. Unit Tests: Cryptodev
  • 232. Unit Tests: Dump Ring
  • 233. Unit Tests: Dump Mempool
  • 234. Unit Tests: Dump Physical Memory
  • 235. Unit Tests: Dump Memzone
  • 236. Unit Tests: Dump Struct Size
  • 237. Unit Tests: Dump Devargs
  • 238. Unit Tests: Dump malloc stats
  • 239. Unit Tests: Dump malloc heaps
  • 240. Unit Tests: Dump log types
  • 241. Unit Tests: EAL
  • 242. Unit Tests: Event Timer
  • 243. Unit Tests: KNI
  • 244. Unit Tests: single port MAC loopback
  • 245. Unit Tests: LPM
  • 246. Unit Tests: LPM_ipv6
  • 247. Unit Tests: LPM_perf
  • 248. Unit Tests: LPM_ipv6_perf
  • 249. Unit Tests: Mbuf
  • 250. Unit Tests: Mempool
  • 251. Unit Tests: PMD Performance
  • 252. Unit Tests: Power Library
  • 253. Unit Tests: Random Early Detection (RED)
  • 254. Unit Tests: Metering
  • 255. Unit tests: Scheduler
  • 256. Unit Tests: Ring Pmd
  • 257. Unit Tests: Ring
  • 258. Unit Tests: Ring Performance
  • 259. Unit tests: Timer
  • 260. Sample Application Tests: Cmdline Example
  • 261. Sample Application Tests: Hello World Example
  • 262. Sample Application Tests: Keep Alive Example
  • 263. Sample Application Tests: Multi-Process
  • 264. Sample Application Tests: Netmap Compatibility
  • 265. Sample Application Tests: RX/TX Callbacks
  • 266. Sample Application Tests: Basic Forwarding/Skeleton Application
  • 267. Sample Application Tests: Timer Example
  • 268. Sample Application Tests: Vxlan Example
  • 269. Sample Application Tests: IEEE1588
  • 270. Sample Application Tests: Packet distributor
  • 271. Sample Application Tests: Elastic Flow Distributor
  • 272. Example Build
  • 273. flow classify
  • 274. DPDK Hugetlbfs Mount Size Feature Test Plan
  • 275. Benchmark the performance of single core forwarding with FVL25G/NNT10G
  • 276. Power managerment throughput test plan
  • 277. DPDK IAVF API Tests
  • 278. packet capture
  • 279. Sample Application Tests: Packet Ordering
  • 280. Wireless device for ICX-D (bbdev) for Turbo decoding/encoding
  • 281. Performance-thread performance Tests
  • 282. FIPS Validation Application Tests
  • 283. Flow Filtering Tests
  • 284. DPDK PMD for AF_XDP Tests
  • 285. CBDMA test plan
  • 286. Flexible RXd Test Suites
  • 287. IPSec gateway and library test plan
  • 288. Port Control Tests
  • 289. Port Representor Tests
  • 290. vm2vm vhost-user/virtio-user test plan
  • 291. Fortville: Support of RX Packet Filtering using VMDQ & DCB Features
DPDK Test Plans
  • Docs »
  • 91. Link Status Detection Tests
  • View page source

91. 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)

91.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.

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:

$ ./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.

91.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.

91.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.