Skip to content

Commit c1ced4d

Browse files
committed
Fix a build error of kni.
1 parent 69bc752 commit c1ced4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ff_dpdk_if.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
int enable_kni = 0;
7373
static int kni_accept;
74-
static int knictl_action = FF_KNICTL_ACTION_DEFAULT;
74+
static enum FF_KNICTL_ACTION knictl_action = FF_KNICTL_ACTION_DEFAULT;
7575
#endif
7676
int nb_dev_ports = 0; /* primary is correct, secondary is not correct, but no impact now*/
7777

@@ -520,7 +520,7 @@ init_msg_ring(void)
520520

521521
#ifdef FF_KNI
522522

523-
static enum FF_KNICTL_CMD get_kni_action(const char *c){
523+
static enum FF_KNICTL_ACTION get_kni_action(const char *c){
524524
if (!c)
525525
return FF_KNICTL_ACTION_DEFAULT;
526526
if (0 == strcasecmp(c, "alltokni")){

0 commit comments

Comments
 (0)