X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_kni%2Frte_kni.h;h=52ffdb73778a719263b6d3e462716d6f39b63760;hb=bd734cf778228233f62620efab0949df0ac0ed13;hp=603e2cd0994fdf6ff47caf68743f9a5c404c74aa;hpb=364ea7748187b446cdb1c03ce9fc28773f242b47;p=dpdk.git diff --git a/lib/librte_kni/rte_kni.h b/lib/librte_kni/rte_kni.h index 603e2cd099..52ffdb7377 100644 --- a/lib/librte_kni/rte_kni.h +++ b/lib/librte_kni/rte_kni.h @@ -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. * @@ -291,12 +301,7 @@ extern int rte_kni_register_handlers(struct rte_kni *kni, extern int rte_kni_unregister_handlers(struct rte_kni *kni); /** - * close KNI device. - * - * @param void - * - * @return - * void + * Close KNI device. */ extern void rte_kni_close(void);