Check RTE flow API rules implying MARK and FLAG actionsΒΆ

Make sure that RTE flow API MARK and FLAG actions are carried out correctly

  1. Prepare state TEST_ETHDEV_INITIALIZED

  2. Make flow rule attributes with only one "ingress" attribute

  3. Make flow rule pattern by flow_rule_pattern

  4. Check that there is only one action in the flow_rule_actions, and if this is MARK action, then set the MARK id value

  5. Add QUEUE flow rule action to direct matched traffic to default queue

  6. Make flow rule actions by flow_rule_actions

  7. Negotiate the NIC's ability to deliver MARK/FLAG to the PMD

  8. Prepare state TEST_ETHDEV_STARTED

  9. Validate and create the flow rule

  10. Prepare template that matches the filter

  11. Enable promiscuous mode to recieve packets with alien mac addresses

  12. Ensure that interface is UP on Tester side

  13. Transmit one packet with prepared match template

  14. Transmit packets with dissimilar templates

  15. Receive all packets

  16. 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

  17. 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