All-multicast mode testΒΆ

Check correct work of all-multicast mode

Checking the correct work of all-multicast mode by sending several packets with different MAC addresses.

  1. Initialize EAL, preparing of ethdev_state Ethernet device state

  2. Make sure that promiscuous mode is disabled

  3. If the is_all_mcast_mode is TRUE then enable all-multicast mode, otherwise disable it

  4. Start the Ethernet device

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

  6. Ensure that interface is UP on Tester side

  7. Transmit three packets from tst_if: the first is broadcast, the second is multicast and the third is unicast, with MAC adrress is different from MAC address of the iut_port

  8. Receive packets on port iut_port. Check that the first received packet matches the first sent, the second received packet matches the first sent, if is_all_mcast_mode is TRUE, otherwise it was dropped and the third packet was dropped.

Parameters:

ethdev_state

The state of Ethernet device

is_all_mcast_mode

Enable all-multicast if TRUE, otherwise disable it