- floor_obytes = (all_bond_obytes*90)/(test_params->bonded_slave_count*100);
- ceiling_obytes = (all_bond_obytes*110)/(test_params->bonded_slave_count*100);
- TEST_ASSERT(port_stats[i].obytes >= floor_obytes &&
- port_stats[i].obytes <= ceiling_obytes,
- "Distribution is not even");
+ /* checking if distribution of packets is balanced over slaves */
+ for (i = 0; i < test_params->bonded_slave_count; i++) {
+ TEST_ASSERT(port_stats[i].obytes > 0 &&
+ port_stats[i].obytes < all_bond_obytes,
+ "Packets are not balanced over slaves");