Check RTE flow API rules with VLAN tag pushΒΆ
Check that flow API VLAN tag push action is carried out correctly
Prepare
TEST_ETHDEV_STARTED
stateMake flow rule attributes
Make flow rule pattern by flow_rule_pattern
Make flow rule actions with VLAN push and set VLAN ID actions
Add flow rule action "count" for counter query
Validate and create the flow rule
Fill required fields in the template
Initiate a packet transfer with VLAN push transformations
Send a packet, receive it the other side and match packet to transformed pattern
Parameters:
flow_rule_pattern |
Flow rule pattern |
ingress |
Test flow rule ingress if |
ethertype_first |
Ethertype of the first VLAN tag to be pushed |
ethertype_second |
Ethertype of the second VLAN tag to be pushed, |
vlan_id_first |
VLAN ID of the first VLAN tag to be pushed, negative value means not specified |
vlan_id_second |
VLAN ID of the second VLAN tag to be pushed, negative value means not specified |
count |
Count packets if |