Testing drop of packets that match flow rule with DROP action
Make sure that RTE flow API DROP action is carried out correctly
Initialize EAL
Enter isolated mode if need be
Start the device
Prepare IUT and TST sides for transmit or receive
Make flow rule attributes as specified in parameters
Make flow rule pattern and prepare matching template
Prepare addresses for the matching and non-matching templates
Add tunnel UDP ports to recognize received packets if VXLAN/GENEVE protocols are used
Make flow rule action "count" for counter query
Make flow rule action "drop"
Validate and create the flow rule
Enable promiscuous mode if need be
Ensure that interface is UP on Tester side
Transmit one packet with prepared match template. Check that the packet was dropped.
Transmit and receive packets with dissimilar templates. Check that packets were received (if isolated is not enabled).
Check the counter for dropped packet if need be
Parameters:
flow_rule_pattern |
Flow rule pattern |
transfer |
Set transfer attribute to flow rule if |
count |
Count dropped packets if |
promisc |
Test with promiscuous mode enabled if |
ingress |
Test flow rule ingress if |
isolated |
Test with isolated flow mode if |
is_ip6_inner_frame |
Create test packets with IPv6 inner PDU if |