Test Rx interrupts

The test requests Rx queue interrupts on device configuration then checks that Rx interrupts are triggered when enabled

  1. Prepare initialized Ethernet device state

  2. Perform device configuration with Rx queue interrupt enabled

  3. Start the device

  4. Ensure that interface is UP on Tester side

  5. Prepare the packet template

    • Enable interrupt on the target Rx queue

    • Bind interrupt caused by the target queue to a per-thread Epoll file descriptor

    • Disable Rx interrupt on the target Rx queue

    • Transmit and sniff a packet

    • Check that the packet is received on the target queue

    • Check that interrupt was caused or not

Igor Romanov Igor.Romanov@oktetlabs.ru

Parameters:

tmpl

Traffic template

scenario

Comma-separated list of scenario steps to perform in order:

  • intr_enable : enable interrupt on the target Rx queue

  • intr_disable : disable interrupt on the target Rx queue

  • send_packet : transmit a packet from the Tester

  • receive_packet : check that the packet is received on the target queue

  • check_intr : check whether an interrupt is caused as expected