Promiscuous mode test

Check correct work of promiscuous mode

Checking the correct work of promiscuous mode by sending two packets with different MAC addresses: one of which is the MAC address of the iut_port, the other is not

  1. Initialize EAL, preparing of ethdev_state Ethernet device state

  2. If the is_promiscuous_mode is TRUE then enable promiscuous mode, otherwise disable it

  3. Start the Ethernet device

  4. Check that a new mode was saved after start of device

  5. Ensure that interface is UP on Tester side

  6. Transmit and sniff two packets from tst_if: the first to the iut_port MAC address and the second to the iut_alien_mac

  7. Receive packets on iut_port Check that the first received packet matches the first sent and the second was dropped if is_promiscuous_mode is FALSE

Parameters:

ethdev_state

The state of Ethernet device

is_promiscuous_mode

Enable promiscuous mode if TRUE, otherwise disable it