Multiple count actions in a flow ruleΒΆ

Test multiple count actions in a flow rule

Test flow rule with multiple count actions.

  1. Initialize EAL

  2. Enter isolated mode if need be

  3. Start the device

  4. Prepare IUT and TST sides for transmit or receive

  5. Make flow rule attributes as specified in parameters

  6. Make flow rule pattern and prepare matching template

  7. Prepare addresses for the matching and non-matching templates

  8. Make flow rule actions "count" from test parameters

  9. Make flow rule action "drop"

  10. Validate and create the flow rule

  11. Enable promiscuous mode if need be

  12. Ensure that interface is UP on Tester side

  13. Transmit one packet with prepared match template. Check that the packet was dropped.

  14. Transmit and receive packets with dissimilar templates. Check received packets (if it is not ingress isolated).

  15. Check the counters hits and bytes

Parameters:

ingress

Test flow rule ingress if TRUE, egress if FALSE

promisc

Test with promiscuous mode enabled if TRUE

isolated

Test with isolated flow mode if TRUE

transfer

Set transfer attribute to flow rule if TRUE

flow_rule_pattern

Flow rule pattern

counter_ids

List of IDs of counters to create for the flow rule