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
    • 47.1. Prerequisites
    • 47.2. Test Case: test_perf_flowctrl_on_pause_fwd_on
    • 47.3. Test Case: test_perf_flowctrl_on_pause_fwd_off
    • 47.4. Test Case: test_perf_flowctrl_rx_on
    • 47.5. Test Case: test_perf_flowctrl_off_pause_fwd_off
    • 47.6. Test Case: test_perf_flowctrl_off_pause_fwd_on
    • 47.7. Test Case: test_perf_flowctrl_tx_on
  • 48. Link Status Detection Tests
  • 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 »
  • 47. Ethernet Link Flow Control Tests
  • View page source

47. Ethernet Link Flow Control Tests¶

The support of Ethernet link flow control features by Poll Mode Drivers consists in:

  • At the receive side, if packet buffer is not enough, NIC will send out the pause frame to peer and ask the peer to slow down the Ethernet frame # transmission.
  • At the transmit side, if pause frame is received, NIC will slow down the Ethernet frame transmission according to the pause frame.

MAC Control Frame Forwarding consists in:

  • Control frames (PAUSE Frames) are taken by the NIC and do not pass to the host.
  • When Flow Control and MAC Control Frame Forwarding are enabled the PAUSE frames will be passed to the host and can be handled by testpmd.

Note: Priority flow control is not included in this test plan.

Note: the high_water, low_water, pause_time, send_xon are configured into the NIC register. It is not necessary to validate the accuracy of these parameters. And what change it can cause. The port_id is used to indicate the NIC to be configured. In certain case, a system can contain multiple NIC. However the NIC need not be configured multiple times.

47.1. Prerequisites¶

Assuming that ports 0 and 2 are connected to a traffic generator, launch the testpmd with the following arguments:

./build/app/testpmd -cffffff -n 3 -- -i --burst=1 --txpt=32 \
--txht=8 --txwt=0 --txfreet=0 --rxfreet=64 --mbcache=250 --portmask=0x5

The -n command is used to select the number of memory channels. It should match the number of memory channels on that setup.

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

47.2. Test Case: test_perf_flowctrl_on_pause_fwd_on¶

testpmd> set flowctrl rx on tx on high_water low_water pause_time
send_xon mac_ctrl_frame_fwd on autoneg on port_id

Setup the csum forwarding mode:

testpmd> set fwd csum
Set csum packet forwarding mode

Start the packet forwarding:

testpmd> start
  csum packet forwarding - CRC stripping disabled - packets/burst=32
  nb forwarding cores=1 - nb forwarding ports=10
  RX queues=1 - RX desc=128 - RX free threshold=64
  RX threshold registers: pthresh=8 hthresh=8 wthresh=4
  TX queues=1 - TX desc=512 - TX free threshold=0
  TX threshold registers: pthresh=32 hthresh=8 wthresh=8

Validate the NIC can generate the pause frame? Configure the traffic generator to send IPv4/UDP packet at the length of 66Byte at the line speed (10G). Because the 66Byte packet cannot reach line rate when running with testpmd, so it is expected that the pause frame will be sent to the peer (traffic generator). Ideally this mechanism can avoid the packet loss. And this depends on high_water/low_water and other parameters are configured properly. It is strongly recommended that the user look into the data sheet before doing any flow control configuration. By default, the flow control on 10G is disabled. the flow control for 1G is enabled.

Validate the NIC can deal with the pause frame. Configure the traffic generator to send out large amount of pause frames, this will cause the NIC to disable / slow down the packet transmission according to the pause time. Once the traffic generator stop sending the pause frame, the NIC will restore the packet transmission to the expected rate.

47.3. Test Case: test_perf_flowctrl_on_pause_fwd_off¶

testpmd> set flowctrl rx on tx on high_water low_water pause_time
send_xon mac_ctrl_frame_fwd off autoneg on port_id

Validate same behavior as test_perf_flowctrl_on_pause_fwd_on

47.4. Test Case: test_perf_flowctrl_rx_on¶

testpmd> set flowctrl rx on tx on high_water low_water pause_time
send_xon mac_ctrl_frame_fwd off autoneg on port_id

Validate same behavior as test_perf_flowctrl_on_pause_fwd_on

47.5. Test Case: test_perf_flowctrl_off_pause_fwd_off¶

This is the default mode for 10G PMD, by default, testpmd is running on this mode. no need to execute any command:

testpmd> set flowctrl rx off tx off high_water low_water pause_time
send_xon mac_ctrl_frame_fwd off autoneg on port_id

Validate the NIC won’t generate the pause frame when the packet buffer is not enough. Packet loss can be observed. Validate the NIC will not slow down the packet transmission after receiving the pause frame.

47.6. Test Case: test_perf_flowctrl_off_pause_fwd_on¶

testpmd> set flowctrl rx off tx off high_water low_water pause_time
send_xon mac_ctrl_frame_fwd on autoneg on port_id

Validate same behavior as test_perf_flowctrl_off_pause_fwd_off

47.7. Test Case: test_perf_flowctrl_tx_on¶

testpmd> set flowctrl rx off tx on high_water low_water pause_time
send_xon mac_ctrl_frame_fwd off autoneg on port_id

Validate same behavior as test_perf_flowctrl_on_pause_fwd_off

Next Previous

© Copyright 2017, dpdk.org

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