| 912 | } |
| 913 | |
| 914 | static int |
| 915 | processing_loop(void *arg) |
| 916 | { |
| 917 | struct lcore_conf *lcore_conf = arg; |
| 918 | const bool run_encoder = (lcore_conf->core_type & |
| 919 | (1 << RTE_BBDEV_OP_TURBO_ENC)); |
| 920 | const bool run_decoder = (lcore_conf->core_type & |
| 921 | (1 << RTE_BBDEV_OP_TURBO_DEC)); |
| 922 | |
| 923 | while (!__atomic_load_n(&global_exit_flag, __ATOMIC_RELAXED)) { |
| 924 | if (run_encoder) |
| 925 | run_encoding(lcore_conf); |
| 926 | if (run_decoder) |
| 927 | run_decoding(lcore_conf); |
| 928 | } |
| 929 | |
| 930 | return 0; |
| 931 | } |
| 932 | |
| 933 | static int |
| 934 | prepare_bbdev_device(unsigned int dev_id, struct rte_bbdev_info *info, |
no test coverage detected