Check RTE flow API rules implying MARK and FLAG actionsΒΆ
Make sure that RTE flow API MARK and FLAG actions are carried out correctly
Prepare state TEST_ETHDEV_INITIALIZED
Make flow rule attributes with only one "ingress" attribute
Make flow rule pattern by flow_rule_pattern
Check that there is only one action in the flow_rule_actions, and if this is MARK action, then set the MARK id value
Add QUEUE flow rule action to direct matched traffic to default queue
Make flow rule actions by flow_rule_actions
Negotiate the NIC's ability to deliver MARK/FLAG to the PMD
Prepare state TEST_ETHDEV_STARTED
Validate and create the flow rule
Prepare template that matches the filter
Enable promiscuous mode to recieve packets with alien mac addresses
Ensure that interface is UP on Tester side
Transmit one packet with prepared match template
Transmit packets with dissimilar templates
Receive all packets
Check that the first packet has RTE_MBUF_F_RX_FDIR mbuf offload flag in case of FLAG action and has RTE_MBUF_F_RX_FDIR and RTE_MBUF_F_RX_FDIR_ID flags and right MARK value in case of MARK action
Check that other packets don't have RTE_MBUF_F_RX_FDIR and RTE_MBUF_F_RX_FDIR_ID mbuf offload flags
Parameters:
flow_rule_pattern |
Flow rule pattern |
flow_rule_actions |
Flow rule actions |
mark_value |
MARK id value |