Lines Matching refs:global_flag_stru_p

353 struct global_flag_stru_t *global_flag_stru_p = &global_flag_stru;  variable
379 rte_spinlock_trylock(&global_flag_stru_p->lock); in lcore_main()
381 while (global_flag_stru_p->LcoreMainIsRunning) { in lcore_main()
382 rte_spinlock_unlock(&global_flag_stru_p->lock); in lcore_main()
403 if (rte_spinlock_trylock(&global_flag_stru_p->lock) == 1) { in lcore_main()
404 global_flag_stru_p->port_packets[0]++; in lcore_main()
405 rte_spinlock_unlock(&global_flag_stru_p->lock); in lcore_main()
416 if (rte_spinlock_trylock(&global_flag_stru_p->lock) == 1) { in lcore_main()
417 global_flag_stru_p->port_packets[1]++; in lcore_main()
418 rte_spinlock_unlock(&global_flag_stru_p->lock); in lcore_main()
441 if (rte_spinlock_trylock(&global_flag_stru_p->lock) == 1) { in lcore_main()
442 global_flag_stru_p->port_packets[2]++; in lcore_main()
443 rte_spinlock_unlock(&global_flag_stru_p->lock); in lcore_main()
460 rte_spinlock_trylock(&global_flag_stru_p->lock); in lcore_main()
462 rte_spinlock_unlock(&global_flag_stru_p->lock); in lcore_main()
575 rte_spinlock_trylock(&global_flag_stru_p->lock); in cmd_start_parsed()
576 if (global_flag_stru_p->LcoreMainIsRunning == 0) { in cmd_start_parsed()
577 if (rte_eal_get_lcore_state(global_flag_stru_p->LcoreMainCore) in cmd_start_parsed()
579 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_start_parsed()
582 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_start_parsed()
585 global_flag_stru_p->LcoreMainCore); in cmd_start_parsed()
586 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_start_parsed()
595 rte_spinlock_trylock(&global_flag_stru_p->lock); in cmd_start_parsed()
596 global_flag_stru_p->LcoreMainIsRunning = 1; in cmd_start_parsed()
597 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_start_parsed()
663 rte_spinlock_trylock(&global_flag_stru_p->lock); in cmd_stop_parsed()
664 if (global_flag_stru_p->LcoreMainIsRunning == 0) { in cmd_stop_parsed()
667 global_flag_stru_p->LcoreMainCore); in cmd_stop_parsed()
668 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_stop_parsed()
671 global_flag_stru_p->LcoreMainIsRunning = 0; in cmd_stop_parsed()
672 if (rte_eal_wait_lcore(global_flag_stru_p->LcoreMainCore) < 0) in cmd_stop_parsed()
675 global_flag_stru_p->LcoreMainCore); in cmd_stop_parsed()
679 global_flag_stru_p->LcoreMainCore); in cmd_stop_parsed()
680 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_stop_parsed()
704 rte_spinlock_trylock(&global_flag_stru_p->lock); in cmd_quit_parsed()
705 if (global_flag_stru_p->LcoreMainIsRunning == 0) { in cmd_quit_parsed()
708 global_flag_stru_p->LcoreMainCore); in cmd_quit_parsed()
709 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_quit_parsed()
713 global_flag_stru_p->LcoreMainIsRunning = 0; in cmd_quit_parsed()
714 if (rte_eal_wait_lcore(global_flag_stru_p->LcoreMainCore) < 0) in cmd_quit_parsed()
717 global_flag_stru_p->LcoreMainCore); in cmd_quit_parsed()
721 global_flag_stru_p->LcoreMainCore); in cmd_quit_parsed()
722 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_quit_parsed()
766 rte_spinlock_trylock(&global_flag_stru_p->lock); in cmd_show_parsed()
771 global_flag_stru_p->port_packets[0], in cmd_show_parsed()
772 global_flag_stru_p->port_packets[1], in cmd_show_parsed()
773 global_flag_stru_p->port_packets[2]); in cmd_show_parsed()
774 rte_spinlock_unlock(&global_flag_stru_p->lock); in cmd_show_parsed()
849 rte_spinlock_init(&global_flag_stru_p->lock); in main()
862 global_flag_stru_p->LcoreMainIsRunning = 1; in main()
863 global_flag_stru_p->LcoreMainCore = worker_core_id; in main()