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

Function bond_members

dpdk/app/test/test_link_bonding_rssconf.c:187–204  ·  view source on GitHub ↗

* Add all members to bonding */

Source from the content-addressed store, hash-verified

185 * Add all members to bonding
186 */
187static int
188bond_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

Callers 2

test_rssFunction · 0.85
test_rss_lazyFunction · 0.85

Calls 1

rte_eth_bond_member_addFunction · 0.85

Tested by

no test coverage detected