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

Function get_kni_action

lib/ff_dpdk_if.c:522–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

520#ifdef FF_KNI
521
522static enum FF_KNICTL_ACTION get_kni_action(const char *c){
523 if (!c)
524 return FF_KNICTL_ACTION_DEFAULT;
525 if (0 == strcasecmp(c, "alltokni")){
526 return FF_KNICTL_ACTION_ALL_TO_KNI;
527 } else if (0 == strcasecmp(c, "alltoff")){
528 return FF_KNICTL_ACTION_ALL_TO_FF;
529 } else if (0 == strcasecmp(c, "default")){
530 return FF_KNICTL_ACTION_DEFAULT;
531 } else {
532 return FF_KNICTL_ACTION_DEFAULT;
533 }
534}
535
536static int
537init_kni(void)

Callers 1

init_kniFunction · 0.85

Calls 1

strcasecmpFunction · 0.85

Tested by

no test coverage detected