return retval;
printf("Port %u MAC: %02" PRIx8 " %02" PRIx8 " %02" PRIx8
" %02" PRIx8 " %02" PRIx8 " %02" PRIx8 "\n",
- (unsigned int)port,
- addr.addr_bytes[0], addr.addr_bytes[1],
- addr.addr_bytes[2], addr.addr_bytes[3],
- addr.addr_bytes[4], addr.addr_bytes[5]);
+ (unsigned int)port, RTE_ETHER_ADDR_BYTES(&addr));
/* Enable RX in promiscuous mode for the Ethernet device. */
retval = rte_eth_promiscuous_enable(port);
default_params.rx_intr_port = portid;
return 0;
}
- rte_eth_dev_stop(portid);
+ retval = rte_eth_dev_stop(portid);
+ TEST_ASSERT(retval == 0, "Failed to stop port %u: %d\n",
+ portid, retval);
}
return 0;
}
/* stop eth devices for existing */
port_index = 0;
- for (; port_index < rte_eth_dev_count_total(); port_index += 1)
- rte_eth_dev_stop(port_index);
+ for (; port_index < rte_eth_dev_count_total(); port_index += 1) {
+ err = rte_eth_dev_stop(port_index);
+ TEST_ASSERT(err == 0, "Failed to stop port %u: %d\n",
+ port_index, err);
+ }
/* add the max port for rx_adapter */
port_index = rte_eth_dev_count_total();