kni: query the name of an instance
[dpdk.git] / lib / librte_kni / rte_kni.h
index 603e2cd..fd2b78f 100644 (file)
@@ -247,6 +247,16 @@ extern uint8_t rte_kni_get_port_id(struct rte_kni *kni) \
  */
 extern struct rte_kni *rte_kni_get(const char *name);
 
+/**
+ * Get the name given to a KNI device
+ *
+ * @param kni
+ *   The KNI instance to query
+ * @return
+ *   The pointer to the KNI name
+ */
+extern const char *rte_kni_get_name(const struct rte_kni *kni);
+
 /**
  * Get the KNI context of the specific port.
  *