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:Classification:Flow Director
  • 8. CVL Switch Filter Tests
  • 9. Cryptodev Performance Application Tests
  • 10. DDP GTP Qregion
  • 11. Fortville DDP GTP-C/GTP-U Tests
  • 12. Fortville DDP (Dynamic Device Personalization) Tests
  • 13. DDP PPPoE/L2TPv2/PPPoL2TPv2
  • 14. DDP L2TPV3
  • 15. Dual VLAN Offload Tests
  • 16. Dynamic Driver Configuration Tests
  • 17. Fortville Dynamic Mapping of Flow Types to PCTYPEs Tests
  • 18. Dynamic queue
  • 19. External Tag (E-tag) Tests
  • 20. Ability to use external memory test plan
  • 21. External Mempool Handler Tests
  • 22. Niantic Flow Director Tests
  • 23. VEB Switch and floating VEB Tests
  • 24. Flow classification for softnic PMD
  • 25. Fortville Granularity Configuration of RSS and 32-bit GRE key Tests
  • 26. FM10k FTAG Forwarding Tests
  • 27. Generic Filter Tests
  • 28. Generic filter/flow api
  • 29. Hotplug on multi-processes
  • 30. DPDK Hotplug API Tests
  • 31. IEEE1588 Precise Time Protocol Tests
  • 32. Niantic Inline IPsec Tests
  • 33. One-shot Rx Interrupt Tests
  • 34. IP Pipeline Application Tests
  • 35. IP fragmentation Tests
  • 36. Generic Routing Encapsulation (GRE) Tests
  • 37. CryptoDev API Tests
  • 38. IP Reassembly Tests
  • 39. Niantic ixgbe_get_vf_queue Include Extra Information Tests
  • 40. Jumbo Frame Tests
  • 41. Kernel NIC Interface (KNI) Tests
  • 42. CryptoDev API Tests
  • 43. L2 Forwarding Tests
  • 44. L3 Forwarding Exact Match Tests
  • 45. L3 Forwarding Tests
  • 46. Layer-3 Forwarding with Access Control
  • 47. Ethernet Link Flow Control Tests
  • 48. Link Status Detection Tests
    • 48.1. Prerequisites
    • 48.2. Test Case: Link Status Change
    • 48.3. Test Case: Port available
  • 49. vhost/virtio loopback with multi-paths and port restart test plan
  • 50. vhost/virtio-user loopback server mode test plan
  • 51. Whitelisting Tests
  • 52. Niantic Media Access Control Security (MACsec) Tests
  • 53. metering and policing
  • 54. Multiple Pthread Test
  • 55. NIC Statistics Tests
  • 56. NTB test plan
  • 57. Fortville NVGRE Tests
  • 58. vhost/virtio multi-paths loopback test plan
  • 59. vhost/virtio pvp performance test plan
  • 60. perf vm2vm vhost-user/virtio-net test plan
  • 61. vhost/virtio-user pvp with multi-queues and port restart test plan
  • 62. Link Bonding for mode 4 (802.3ad)
  • 63. Bonding Tests
  • 64. stacked Bonded
  • 65. Poll Mode Driver Tests
  • 66. TestPMD PCAP Tests
  • 67. Fortville RSS - Configuring Hash Function Tests
  • 68. Niantic Reta (Redirection table) Tests
  • 69. PTYPE Mapping Tests
  • 70. vhost/virtio pvp multi-paths performance test plan
  • 71. vhost/virtio pvp multi-paths vhost single core test plan
  • 72. vhost/virtio pvp multi-paths virtio single core test plan
  • 73. Fortville Cloud filters for QinQ steering Tests
  • 74. QoS API
  • 75. QoS Metering Tests
  • 76. QoS Scheduler Tests
  • 77. Fortville Configure RSS Queue Regions Tests
  • 78. Shutdown API Queue Tests
  • 79. Move RSS to rte_flow
  • 80. Rte_flow Priority Tests
  • 81. VF Request Queue Number From Kernel At Runtime
  • 82. VF Request Maximum Queue Number At Runtime
  • 83. VF Request Queue Number At Runtime
  • 84. PMD drivers adaption for new RXTX offload APIs
  • 85. Scattered Packets Tests
  • 86. Short-lived Application Tests
  • 87. Shutdown API Feature Tests
  • 88. SRIOV and InterVM Communication Tests
  • 89. Stability Tests
  • 90. Eventdev Pipeline SW PMD Tests
  • 91. Transmit Segmentation Offload (TSO) Tests
  • 92. Tx Preparation Forwarding Tests
  • 93. Unified Packet Type Tests
  • 94. Userspace Ethtool Tests
  • 95. VLAN Ethertype Config Tests
  • 96. VLAN Offload Tests
  • 97. Fortville Vxlan Tests
  • 98. DPDK PMD for AF_XDP Tests
  • 99. L2fwd Jobstats Test
  • 100. Load Balancer
  • 101. vhost/virtio-user loopback with multi-queues test plan
  • 102. DPDK Telemetry API Tests
  • 103. CompressDev ISA-L PMD Tests
  • 104. CompressDev QAT PMD Tests
  • 105. CompressDev ZLIB PMD Tests
  • 106. Flexible pipeline package processing on CPK NIC mode Tests
  • 107. IPv4 Multicast
  • 108. ethtool stats
  • 109. metrics
  • 110. VEB Switch and floating VEB Tests
  • 111. VFD as SRIOV Policy Manager Tests
  • 112. VF One-shot Rx Interrupt Tests
  • 113. VF Jumboframe Tests
  • 114. VFD as SRIOV Policy Manager Tests
  • 115. VF MAC Filter Tests
  • 116. VF Offload
  • 117. VF Packet RxTX Tests
  • 118. VF PF Reset Tests
  • 119. VF Port Start Stop Tests
  • 120. VF RSS - Configuring Hash Function Tests
  • 121. VF to VF Bridge Tests
  • 122. VF VLAN Tests
  • 123. Kernel PF + IAVF test plan
  • 124. Vhost/Virtio multiple queue qemu test plan
  • 125. Vhost MTU Test Plan
  • 126. Vhost User Live Migration Tests
  • 127. vhost PMD Xstats Tests restart test plan
  • 128. VM Power Management Tests
  • 129. VM Power Management Tests (Policy/Turbo)
  • 130. power bidirection channel test plan
  • 131. Power Lib Empty Poll Test
  • 132. Power PBF Tests
  • 133. Power Lib Based on Intel Pstate Driver
  • 134. Power Lib Telemetry Test Plan
  • 135. VMDQ Tests
  • 136. VF L3 Forwarding Performance Tests
  • 137. softnic PMD
  • 138. VM hotplug Tests
  • 139. Malicious Driver Detection (MDD) Tests
  • 140. Virtio-1.0 Support Tests
  • 141. vhost enqueue interrupt mode test plan
  • 142. vhost event idx interrupt mode test plan
  • 143. vhost/virtio-pmd interrupt mode test plan
  • 144. vhost/virtio-user interrupt mode test plan
  • 145. virtio event idx interrupt mode test plan
  • 146. Cryptodev virtio ipsec Application Tests
  • 147. Cryptodev virtio Performance Application Tests
  • 148. vm2vm vhost-user/virtio-net test plan
  • 149. vm2vm vhost-user/virtio-pmd test plan
  • 150. DPDK GRO lib test plan
  • 151. DPDK GSO lib test plan
  • 152. vhost dequeue zero-copy test plan
  • 153. I40E VXLAN-GPE Support Tests
  • 154. vhost/virtio different qemu version test plan
  • 155. Vhost/virtio-user pvp share lib test plan
  • 156. Vhost-user built-in net driver test plan
  • 157. vhost/virtio-user pvp with 2M hugepage test plan
  • 158. CryptoDev virtio unit Tests
  • 159. Virtio_user for container networking test plan
  • 160. Eventdev Tests
  • 161. Eventdev Pipeline Perf Tests
  • 162. vhost/virtio qemu multi-paths and port restart test plan
  • 163. vhost-user/virtio pvp reconnect test plan
  • 164. vhost-user/virtio-pmd pvp bonding test plan
  • 165. vhost/virtio-user pvp with 4K-pages test plan
  • 166. Virtio-pmd primary/secondary process test plan
  • 167. vhost 1024 ethports test plan
  • 168. vhost/virtio-pmd qemu regression test plan
  • 169. Virtio_user as an exceptional path test plan
  • 170. Unit Tests: Cmdline
  • 171. Unit Tests: CRC
  • 172. Unit Tests: Cryptodev
  • 173. Unit Tests: Dump Ring
  • 174. Unit Tests: Dump Mempool
  • 175. Unit Tests: Dump Physical Memory
  • 176. Unit Tests: Dump Memzone
  • 177. Unit Tests: Dump Struct Size
  • 178. Unit Tests: Dump Devargs
  • 179. Unit Tests: Dump malloc stats
  • 180. Unit Tests: Dump malloc heaps
  • 181. Unit Tests: Dump log types
  • 182. Unit Tests: EAL
  • 183. Unit Tests: KNI
  • 184. Unit Tests: single port MAC loopback
  • 185. Unit Tests: LPM
  • 186. Unit Tests: LPM_ipv6
  • 187. Unit Tests: LPM_perf
  • 188. Unit Tests: LPM_ipv6_perf
  • 189. Unit Tests: Mbuf
  • 190. Unit Tests: Mempool
  • 191. Unit Tests: PMD Performance
  • 192. Unit Tests: Power Library
  • 193. Unit Tests: Random Early Detection (RED)
  • 194. Unit Tests: Metering
  • 195. Unit tests: Scheduler
  • 196. Unit Tests: Ring Pmd
  • 197. Unit Tests: Ring
  • 198. Unit Tests: Ring Performance
  • 199. Unit tests: Timer
  • 200. Sample Application Tests: Cmdline Example
  • 201. Sample Application Tests: Hello World Example
  • 202. Sample Application Tests: Keep Alive Example
  • 203. Sample Application Tests: Multi-Process
  • 204. Sample Application Tests: Netmap Compatibility
  • 205. Sample Application Tests: Quota and Water-mark
  • 206. Sample Application Tests: RX/TX Callbacks
  • 207. Sample Application Tests: Basic Forwarding/Skeleton Application
  • 208. Sample Application Tests: Timer Example
  • 209. Sample Application Tests: Vxlan Example
  • 210. Sample Application Tests: IEEE1588
  • 211. Sample Application Tests: Packet distributor
  • 212. Sample Application Tests: Elastic Flow Distributor
  • 213. Example Build
  • 214. flow classify
  • 215. DPDK Hugetlbfs Mount Size Feature Test Plan
  • 216. Benchmark the performance of single core forwarding with FVL25G/NNT10G
  • 217. Power managerment throughput test plan
  • 218. DPDK IAVF API Tests
  • 219. packet capture
  • 220. Packet Ordering
  • 221. Wireless device for ICX-D (bbdev) for Turbo decoding/encoding
  • 222. Performance-thread performance Tests
  • 223. FIPS Validation Application Tests
  • 224. Flow Filtering Tests
  • 225. DPDK PMD for AF_XDP Tests
  • 226. CBDMA test plan
  • 227. Flexible RXd Test Suites
  • 228. IPSec gateway and library test plan
  • 229. Port Control Tests
  • 230. Port Representor Tests
  • 231. vm2vm vhost-user/virtio-user test plan
  • 232. Fortville: Support of RX Packet Filtering using VMDQ & DCB Features
DPDK Test Plans
  • Docs »
  • 48. Link Status Detection Tests
  • View page source

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

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

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

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