MCPcopy Create free account
hub / github.com/F-Stack/f-stack / reta_check_synced

Function reta_check_synced

dpdk/app/test/test_link_bonding_rssconf.c:229–247  ·  view source on GitHub ↗

* Check if members RETA is synchronized with bonding port. Returns 1 if member * port is synced with bonding port. */

Source from the content-addressed store, hash-verified

227 * port is synced with bonding port.
228 */
229static int
230reta_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

Callers 2

member_remove_and_addFunction · 0.85
test_propagateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected