IO forward + flow rule check

Check that IO-forwarded packets do not erroneously bypass the flow engine

  1. Prepare state TEST_ETHDEV_INITIALIZED

  2. Prepare state TEST_ETHDEV_STARTED

  3. Prepare rx_tmpl and tx_tmpl for test

  4. Enable promiscuous mode on IUT

  5. Ensure that interface is UP on Tester side

  6. Send packet from TST to IUT and recieve it

  7. Check received packets

  8. Check the number of received and matching packets

  9. Create "drop" and "count" rules

    • Set action

    • Set pattern

  10. Validate and create the flow rule

  11. Send packet back from IUT to TST and ensure that the packet is unseen on TST

  12. Wait packet on TST side, hope not to find it

  13. Make sure the hit count reads 1

Parameters:

rx_tmpl

Traffic template to be sent from Tester and received on IUT

tx_tmpl

Traffic template to be sent from IUT and received on Tester

flow_rule_pattern

Flow rule pattern