Test ingress to specific queue flow API rules
Verify Flow API by adding a filter and inspecting the inbound traffic
Setup 2 Rx queues in non-RSS mode
Prepare
TEST_ETHDEV_INITIALIZED
stateCheck maximum number of Rx queues
Enter isolated mode if need be
Prepare
TEST_ETHDEV_STARTED
stateEnsure that interface is UP on Tester side
Make flow rule attributes with only one "ingress" attribute
Make flow rule pattern by flow_rule_pattern
Make flow rule actions with only one "queue" action
Validate and create the flow rule
Prepare template that matches the filter
Add tunnel UDP ports to recognize received packets if VXLAN/GENEVE protocols are used
When filtering a multicast packet and a unicast packet with enabled promiscuous mode, it is expected that there will be a duplication of packets
Enable promiscuous mode if need be
Transmit and receive one packet with prepared match template. Check that the packet was received on correct queue.
Transmit and receive packets with dissimilar templates. Check that packets were received on default queue.
Parameters:
flow_rule_in2q |
Flow rule |
isolated |
Isolated mode toggle |
promisc |
Test with promiscuous mode enabled if |