Rx behavior with number of packets greater than descriptors number

Make sure that driver can correctly refill Rx queue desc ring

  1. Prepare default config and mbuf pool

  2. Initialize the Ethernet device to get its capabilities

  3. Check Rx queue number of descriptors limitations

    • Set Rx queue number of descriptors

  4. Configure, setup Rx/Tx queues, start the Ethernet device and wait for link up

  5. Check number of descriptors in Rx queue info if supported

  6. Prepare template for test

  7. Ensure that interface is UP on Tester side

  8. Transmit and sniff nb_packets packets from tst_if

  9. Receive packets on iut_port

Daniil Byshenko Daniil.Byshenko@oktetlabs.ru

Parameters:

template

Traffic template

nb_rxd

Rx descriptors number

nb_wrap

Number of ring refilling