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

Function dpaa_event_check_flags

dpdk/drivers/event/dpaa/dpaa_eventdev.c:969–994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967}
968
969static int
970dpaa_event_check_flags(const char *params)
971{
972 struct rte_kvargs *kvlist;
973
974 if (params == NULL || params[0] == '\0')
975 return 0;
976
977 kvlist = rte_kvargs_parse(params, NULL);
978 if (kvlist == NULL)
979 return 0;
980
981 if (!rte_kvargs_count(kvlist, DISABLE_INTR_MODE)) {
982 rte_kvargs_free(kvlist);
983 return 0;
984 }
985 /* INTR MODE is disabled when there's key-value pair: disable_intr = 1*/
986 if (rte_kvargs_process(kvlist, DISABLE_INTR_MODE,
987 flag_check_handler, NULL) < 0) {
988 rte_kvargs_free(kvlist);
989 return 0;
990 }
991 rte_kvargs_free(kvlist);
992
993 return 1;
994}
995
996static int
997dpaa_event_dev_create(const char *name, const char *params, struct rte_vdev_device *vdev)

Callers 1

dpaa_event_dev_createFunction · 0.85

Calls 4

rte_kvargs_parseFunction · 0.85
rte_kvargs_countFunction · 0.85
rte_kvargs_freeFunction · 0.85
rte_kvargs_processFunction · 0.85

Tested by

no test coverage detected