timer: fix pending counter
[dpdk.git] / lib / librte_kni / rte_kni.h
index 8be6281..cad877b 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  * 
- *   Copyright(c) 2010-2013 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2010-2014 Intel Corporation. All rights reserved.
  *   All rights reserved.
  * 
  *   Redistribution and use in source and binary forms, with or without
@@ -80,10 +80,13 @@ struct rte_kni_conf {
         * memzone name.
         */
        char name[RTE_KNI_NAMESIZE];
+       uint32_t core_id;   /* Core ID to bind kernel thread on */
        uint16_t group_id;  /* Group ID */
        unsigned mbuf_size; /* mbuf size */
        struct rte_pci_addr addr;
        struct rte_pci_id id;
+
+       uint8_t force_bind : 1; /* Flag to bind kernel thread */
 };
 
 /**
@@ -137,7 +140,7 @@ extern struct rte_kni *rte_kni_create(uint8_t port_id,
  * context need to be stopped before calling this interface.
  *
  * @param kni
- *  The pointer to the context of an existant KNI interface.
+ *  The pointer to the context of an existent KNI interface.
  *
  * @return
  *  - 0 indicates success.
@@ -151,7 +154,7 @@ extern int rte_kni_release(struct rte_kni *kni);
  * Finally constructs the response mbuf and puts it back to the resp_q.
  *
  * @param kni
- *  The pointer to the context of an existant KNI interface.
+ *  The pointer to the context of an existent KNI interface.
  *
  * @return
  *  - 0 
@@ -267,6 +270,16 @@ 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
+ */
+extern void rte_kni_close(void);
+
 #ifdef __cplusplus
 }
 #endif