Prove that VLAN ID is kept on port restart
Make sure that PMD does not loose previously configured VLAN TCI if a port restart takes place between two packet bursts with the same VLAN TCI set in the mbufs before and after the port restart
The test is to verify that PMD is able to preserve VLAN TCI established once at the beginning of a packet burst in case if the port restart is done after the burst is sent and before the next one is prepared with the same VLAN TCI
The task is fulfilled by sending a couple of packets with the same VLAN TCI set in the mbufs: one before and one after restart is performed on the port
Initialize ethdev and obtain the device information
Check if VLAN insertion offload is supported and enable it
Prepare
TEST_ETHDEV_CONFIGURED
stateAdjust TxQ settings (if need be)
Prepare
TEST_ETHDEV_STARTED
stateStart the TxQ (if need be)
Obtain the source Ethernet address
Adjust the traffic template
Adjust so-called 'send transformations' for the packets
Generate mbufs and the corresponding pattern for the packets
Create an RX CSAP on the TST host according to the template
Start to capture traffic with the pattern prepared
Ensure that interface is UP on Tester side
Validate and send the first packet
Stop the port, wait for a small amount of time, start the port
Start the TxQ (if need be)
Ensure that interface is UP on Tester side after restart
Validate and send the second packet
Verify the number of matching packets received
Parameters:
template |
Traffic template |
vlan_id |
VLAN ID or |
deferred_txq_start |
Use deferred start for the TxQ |