Check RTE flow API rules implying COUNT actions

Make sure that RTE flow API COUNT actions are carried out correctly

  1. Prepare TEST_ETHDEV_STARTED state

  2. Ensure that interface is UP on Tester side

  3. Make flow rule attributes with only one ingress attribute

  4. Generate flow rule patterns that are different from the original

  5. Create packet templates that are not matching any of created flow rule patterns

  6. Transmit packets with matching templates

    • Create flow rule pattern and matching template

    • Make COUNT flow rule action to pass it to rte_flow_query

    • Make flow rule actions COUNT / QUEUE

    • Validate and create the flow rule

  7. Enable promiscuous mode to recieve packets with alien MAC addresses

    • Transmit one packet with prepared match template

  8. Transmit packets with dissimilar templates

  9. Receive all packets

  10. Check counter values

Parameters:

flow_rule_pattern

Flow rule pattern

n_counters

Number of counters

field_path

ASN.1 path to a field in the pattern to change to make additional patterns