KNI close function added.
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
kni->ops.config_network_if = NULL;
return 0;
}
kni->ops.config_network_if = NULL;
return 0;
}
+void
+rte_kni_close(void)
+{
+ if (kni_fd < 0)
+ return;
+
+ close(kni_fd);
+ kni_fd = -1;
+}
*/
extern int rte_kni_unregister_handlers(struct rte_kni *kni);
*/
extern int rte_kni_unregister_handlers(struct rte_kni *kni);
+/**
+ * close KNI device.
+ *
+ * @param void
+ *
+ * @return
+ * void
+ */
+extern void rte_kni_close(void);
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif