* Check if members RETA is synchronized with bonding port. Returns 1 if member * port is synced with bonding port. */
| 227 | * port is synced with bonding port. |
| 228 | */ |
| 229 | static int |
| 230 | reta_check_synced(struct member_conf *port) |
| 231 | { |
| 232 | unsigned i; |
| 233 | |
| 234 | for (i = 0; i < test_params.bond_dev_info.reta_size; |
| 235 | i++) { |
| 236 | |
| 237 | int index = i / RTE_ETH_RETA_GROUP_SIZE; |
| 238 | int shift = i % RTE_ETH_RETA_GROUP_SIZE; |
| 239 | |
| 240 | if (port->reta_conf[index].reta[shift] != |
| 241 | test_params.bond_reta_conf[index].reta[shift]) |
| 242 | return 0; |
| 243 | |
| 244 | } |
| 245 | |
| 246 | return 1; |
| 247 | } |
| 248 | |
| 249 | /** |
| 250 | * Fetch bonding ports RETA |
no outgoing calls
no test coverage detected