Lines Matching refs:team

21 static rx_handler_result_t lb_receive(struct team *team, struct team_port *port,  in lb_receive()  argument
36 typedef struct team_port *lb_select_tx_port_func_t(struct team *,
64 struct team *team; member
81 static struct lb_priv *get_lb_priv(struct team *team) in get_lb_priv() argument
83 return (struct lb_priv *) &team->mode_priv; in get_lb_priv()
102 static void lb_tx_hash_to_port_mapping_null_port(struct team *team, in lb_tx_hash_to_port_mapping_null_port() argument
105 struct lb_priv *lb_priv = get_lb_priv(team); in lb_tx_hash_to_port_mapping_null_port()
120 team_options_change_check(team); in lb_tx_hash_to_port_mapping_null_port()
124 static struct team_port *lb_hash_select_tx_port(struct team *team, in lb_hash_select_tx_port() argument
129 int port_index = team_num_to_port_index(team, hash); in lb_hash_select_tx_port()
131 return team_get_port_by_index_rcu(team, port_index); in lb_hash_select_tx_port()
135 static struct team_port *lb_htpm_select_tx_port(struct team *team, in lb_htpm_select_tx_port() argument
146 return lb_hash_select_tx_port(team, lb_priv, skb, hash); in lb_htpm_select_tx_port()
226 static bool lb_transmit(struct team *team, struct sk_buff *skb) in lb_transmit() argument
228 struct lb_priv *lb_priv = get_lb_priv(team); in lb_transmit()
236 port = select_tx_port_func(team, lb_priv, skb, hash); in lb_transmit()
239 if (team_dev_queue_xmit(team, port, skb)) in lb_transmit()
249 static int lb_bpf_func_get(struct team *team, struct team_gsetter_ctx *ctx) in lb_bpf_func_get() argument
251 struct lb_priv *lb_priv = get_lb_priv(team); in lb_bpf_func_get()
291 static int lb_bpf_func_set(struct team *team, struct team_gsetter_ctx *ctx) in lb_bpf_func_set() argument
293 struct lb_priv *lb_priv = get_lb_priv(team); in lb_bpf_func_set()
315 lockdep_is_held(&team->lock)); in lb_bpf_func_set()
328 static int lb_tx_method_get(struct team *team, struct team_gsetter_ctx *ctx) in lb_tx_method_get() argument
330 struct lb_priv *lb_priv = get_lb_priv(team); in lb_tx_method_get()
335 lockdep_is_held(&team->lock)); in lb_tx_method_get()
342 static int lb_tx_method_set(struct team *team, struct team_gsetter_ctx *ctx) in lb_tx_method_set() argument
344 struct lb_priv *lb_priv = get_lb_priv(team); in lb_tx_method_set()
354 static int lb_tx_hash_to_port_mapping_init(struct team *team, in lb_tx_hash_to_port_mapping_init() argument
357 struct lb_priv *lb_priv = get_lb_priv(team); in lb_tx_hash_to_port_mapping_init()
364 static int lb_tx_hash_to_port_mapping_get(struct team *team, in lb_tx_hash_to_port_mapping_get() argument
367 struct lb_priv *lb_priv = get_lb_priv(team); in lb_tx_hash_to_port_mapping_get()
376 static int lb_tx_hash_to_port_mapping_set(struct team *team, in lb_tx_hash_to_port_mapping_set() argument
379 struct lb_priv *lb_priv = get_lb_priv(team); in lb_tx_hash_to_port_mapping_set()
383 list_for_each_entry(port, &team->port_list, list) { in lb_tx_hash_to_port_mapping_set()
394 static int lb_hash_stats_init(struct team *team, in lb_hash_stats_init() argument
397 struct lb_priv *lb_priv = get_lb_priv(team); in lb_hash_stats_init()
404 static int lb_hash_stats_get(struct team *team, struct team_gsetter_ctx *ctx) in lb_hash_stats_get() argument
406 struct lb_priv *lb_priv = get_lb_priv(team); in lb_hash_stats_get()
414 static int lb_port_stats_init(struct team *team, in lb_port_stats_init() argument
424 static int lb_port_stats_get(struct team *team, struct team_gsetter_ctx *ctx) in lb_port_stats_get() argument
441 struct team *team) in __lb_stats_info_refresh_check() argument
467 struct team *team; in lb_stats_refresh() local
481 team = lb_priv_ex->team; in lb_stats_refresh()
482 lb_priv = get_lb_priv(team); in lb_stats_refresh()
484 if (!mutex_trylock(&team->lock)) { in lb_stats_refresh()
498 changed |= __lb_stats_info_refresh_check(s_info, team); in lb_stats_refresh()
501 list_for_each_entry(port, &team->port_list, list) { in lb_stats_refresh()
512 changed |= __lb_stats_info_refresh_check(s_info, team); in lb_stats_refresh()
516 team_options_change_check(team); in lb_stats_refresh()
521 mutex_unlock(&team->lock); in lb_stats_refresh()
524 static int lb_stats_refresh_interval_get(struct team *team, in lb_stats_refresh_interval_get() argument
527 struct lb_priv *lb_priv = get_lb_priv(team); in lb_stats_refresh_interval_get()
533 static int lb_stats_refresh_interval_set(struct team *team, in lb_stats_refresh_interval_set() argument
536 struct lb_priv *lb_priv = get_lb_priv(team); in lb_stats_refresh_interval_set()
593 static int lb_init(struct team *team) in lb_init() argument
595 struct lb_priv *lb_priv = get_lb_priv(team); in lb_init()
607 lb_priv->ex->team = team; in lb_init()
624 err = team_options_register(team, lb_options, ARRAY_SIZE(lb_options)); in lb_init()
636 static void lb_exit(struct team *team) in lb_exit() argument
638 struct lb_priv *lb_priv = get_lb_priv(team); in lb_exit()
640 team_options_unregister(team, lb_options, in lb_exit()
647 static int lb_port_enter(struct team *team, struct team_port *port) in lb_port_enter() argument
657 static void lb_port_leave(struct team *team, struct team_port *port) in lb_port_leave() argument
664 static void lb_port_disabled(struct team *team, struct team_port *port) in lb_port_disabled() argument
666 lb_tx_hash_to_port_mapping_null_port(team, port); in lb_port_disabled()