Testing drop of packets that match flow rule with DROP actionΒΆ

Make sure that RTE flow API DROP action is carried out correctly

  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. Add tunnel UDP ports to recognize received packets if VXLAN/GENEVE protocols are used

  9. Make flow rule action "count" for counter query

  10. Make flow rule action "drop"

  11. Validate and create the flow rule

  12. Enable promiscuous mode if need be

  13. Ensure that interface is UP on Tester side

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

  15. Transmit and receive packets with dissimilar templates. Check that packets were received (if isolated is not enabled).

  16. Check the counter for dropped packet if need be

Parameters:

flow_rule_pattern

Flow rule pattern

transfer

Set transfer attribute to flow rule if TRUE

count

Count dropped packets if TRUE

promisc

Test with promiscuous mode enabled if TRUE

ingress

Test flow rule ingress if TRUE, egress if FALSE

isolated

Test with isolated flow mode if TRUE

is_ip6_inner_frame

Create test packets with IPv6 inner PDU if TRUE, IPv4 if FALSE