Lines Matching refs:get_index
98 static int get_index(const char **tbl, char *name) in get_index() function
174 if (get_index(mode_tbl, *argv) < 0) in bond_parse_opt()
176 mode = get_index(mode_tbl, *argv); in bond_parse_opt()
231 if (get_index(arp_validate_tbl, *argv) < 0) in bond_parse_opt()
233 arp_validate = get_index(arp_validate_tbl, *argv); in bond_parse_opt()
237 if (get_index(arp_all_targets_tbl, *argv) < 0) in bond_parse_opt()
239 arp_all_targets = get_index(arp_all_targets_tbl, *argv); in bond_parse_opt()
249 if (get_index(primary_reselect_tbl, *argv) < 0) in bond_parse_opt()
251 primary_reselect = get_index(primary_reselect_tbl, *argv); in bond_parse_opt()
256 if (get_index(fail_over_mac_tbl, *argv) < 0) in bond_parse_opt()
258 fail_over_mac = get_index(fail_over_mac_tbl, *argv); in bond_parse_opt()
263 if (get_index(xmit_hash_policy_tbl, *argv) < 0) in bond_parse_opt()
266 xmit_hash_policy = get_index(xmit_hash_policy_tbl, *argv); in bond_parse_opt()
312 if (get_index(lacp_rate_tbl, *argv) < 0) in bond_parse_opt()
315 lacp_rate = get_index(lacp_rate_tbl, *argv); in bond_parse_opt()
319 if (get_index(ad_select_tbl, *argv) < 0) in bond_parse_opt()
322 ad_select = get_index(ad_select_tbl, *argv); in bond_parse_opt()