]> git.feebdaed.xyz Git - 0xmirror/f-stack.git/commitdiff
Fix a build error of kni.
authorfengbojiang <fengbojiang@tencent.com>
Thu, 30 Oct 2025 08:55:44 +0000 (16:55 +0800)
committerfengbojiang <fengbojiang@tencent.com>
Thu, 30 Oct 2025 08:55:44 +0000 (16:55 +0800)
lib/ff_dpdk_if.c

index 8fef961597fab3c507a1d908ca0430218b0dc85d..05447e2a910e38652982c9616b0d57ff2115b73a 100644 (file)
@@ -71,7 +71,7 @@
 
 int enable_kni = 0;
 static int kni_accept;
-static int knictl_action = FF_KNICTL_ACTION_DEFAULT;
+static enum FF_KNICTL_ACTION knictl_action = FF_KNICTL_ACTION_DEFAULT;
 #endif
 int nb_dev_ports = 0;   /* primary is correct, secondary is not correct, but no impact now*/
 
@@ -520,7 +520,7 @@ init_msg_ring(void)
 
 #ifdef FF_KNI
 
-static enum FF_KNICTL_CMD get_kni_action(const char *c){
+static enum FF_KNICTL_ACTION get_kni_action(const char *c){
     if (!c)
         return FF_KNICTL_ACTION_DEFAULT;
     if (0 == strcasecmp(c, "alltokni")){