Lines Matching refs:s_info
431 static void __lb_stats_info_refresh_prepare(struct lb_stats_info *s_info) in __lb_stats_info_refresh_prepare() argument
433 memcpy(&s_info->last_stats, &s_info->stats, sizeof(struct lb_stats)); in __lb_stats_info_refresh_prepare()
434 memset(&s_info->stats, 0, sizeof(struct lb_stats)); in __lb_stats_info_refresh_prepare()
437 static bool __lb_stats_info_refresh_check(struct lb_stats_info *s_info, in __lb_stats_info_refresh_check() argument
440 if (memcmp(&s_info->last_stats, &s_info->stats, in __lb_stats_info_refresh_check()
442 team_option_inst_set_change(s_info->opt_inst_info); in __lb_stats_info_refresh_check()
469 struct lb_stats_info *s_info; in lb_stats_refresh() local
487 s_info = &lb_priv->ex->stats.info[j]; in lb_stats_refresh()
488 __lb_stats_info_refresh_prepare(s_info); in lb_stats_refresh()
492 __lb_one_cpu_stats_add(&s_info->stats, stats, in lb_stats_refresh()
495 changed |= __lb_stats_info_refresh_check(s_info, team); in lb_stats_refresh()
501 s_info = &lb_port_priv->stats_info; in lb_stats_refresh()
502 __lb_stats_info_refresh_prepare(s_info); in lb_stats_refresh()
506 __lb_one_cpu_stats_add(&s_info->stats, stats, in lb_stats_refresh()
509 changed |= __lb_stats_info_refresh_check(s_info, team); in lb_stats_refresh()