MCPcopy Create free account
hub / github.com/F-Stack/f-stack / processing_loop

Function processing_loop

dpdk/examples/bbdev_app/main.c:914–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

912}
913
914static int
915processing_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
933static int
934prepare_bbdev_device(unsigned int dev_id, struct rte_bbdev_info *info,

Callers 1

mainFunction · 0.85

Calls 2

run_encodingFunction · 0.85
run_decodingFunction · 0.85

Tested by

no test coverage detected