* Add all members to bonding */
| 185 | * Add all members to bonding |
| 186 | */ |
| 187 | static int |
| 188 | bond_members(void) |
| 189 | { |
| 190 | unsigned n; |
| 191 | struct member_conf *port; |
| 192 | |
| 193 | FOR_EACH_PORT(n, port) { |
| 194 | port = &test_params.member_ports[n]; |
| 195 | if (!port->is_member) { |
| 196 | TEST_ASSERT_SUCCESS(rte_eth_bond_member_add(test_params.bond_port_id, |
| 197 | port->port_id), "Cannot attach member %d to the bonding", |
| 198 | port->port_id); |
| 199 | port->is_member = 1; |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | return 0; |
| 204 | } |
| 205 | |
| 206 | /** |
| 207 | * Set all RETA values in port_id to value |
no test coverage detected