Validate FEC mode configuration

Verify setting FEC mode and link transitions associated with that

  1. Prepare state TEST_ETHDEV_INITIALIZED

  2. Prepare state TEST_ETHDEV_STARTED

  3. Query current (start-of-day) FEC mode

  4. Inspect speed FEC capabilites

  5. Prepare state ethdev_state

  6. Set the target FEC mode

  7. Prepare state TEST_ETHDEV_STARTED

  8. Check whether link is up

    • Check if FEC mode can be set in STARTED/link-down state

  9. Validate resulting FEC mode

  10. Prepare the traffic template

  11. Transmit and sniff the packet on Tester

  12. Receive the packet

  13. Validate the packet

Parameters:

env

Network environment configuration (env.peer2peer)

ethdev_state

Ethdev state when FEC should be configured

link_mode

Speed and duplex to configure

fec_mode

Target mode to configure

tmpl

Traffic template