git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: fix some typos
[dpdk.git]
/
lib
/
librte_kni
/
rte_kni.h
diff --git
a/lib/librte_kni/rte_kni.h
b/lib/librte_kni/rte_kni.h
index
b724fa2
..
d195079
100644
(file)
--- a/
lib/librte_kni/rte_kni.h
+++ b/
lib/librte_kni/rte_kni.h
@@
-42,7
+42,7
@@
* interfaces that may be used by the RTE application to receive/transmit
* packets from/to Linux kernel net interfaces.
*
* interfaces that may be used by the RTE application to receive/transmit
* packets from/to Linux kernel net interfaces.
*
- * This library provide two APIs to burst receive packets from KNI interfaces,
+ * This library provide
s
two APIs to burst receive packets from KNI interfaces,
* and burst transmit packets to KNI interfaces.
*/
* and burst transmit packets to KNI interfaces.
*/
@@
-63,13
+63,13
@@
struct rte_mbuf;
* Structure which has the function pointers for KNI interface.
*/
struct rte_kni_ops {
* Structure which has the function pointers for KNI interface.
*/
struct rte_kni_ops {
- uint
8
_t port_id; /* Port ID */
+ uint
16
_t port_id; /* Port ID */
/* Pointer to function of changing MTU */
/* Pointer to function of changing MTU */
- int (*change_mtu)(uint
8_t port_id, unsigned
new_mtu);
+ int (*change_mtu)(uint
16_t port_id, unsigned int
new_mtu);
/* Pointer to function of configuring network interface */
/* Pointer to function of configuring network interface */
- int (*config_network_if)(uint
8
_t port_id, uint8_t if_up);
+ int (*config_network_if)(uint
16
_t port_id, uint8_t if_up);
};
/**
};
/**
@@
-88,6
+88,7
@@
struct rte_kni_conf {
struct rte_pci_addr addr;
struct rte_pci_id id;
struct rte_pci_addr addr;
struct rte_pci_id id;
+ __extension__
uint8_t force_bind : 1; /* Flag to bind kernel thread */
};
uint8_t force_bind : 1; /* Flag to bind kernel thread */
};
@@
-113,8
+114,11
@@
void rte_kni_init(unsigned int max_kni_ifaces);
* The rte_kni_alloc shall not be called before rte_kni_init() has been
* called. rte_kni_alloc is thread safe.
*
* The rte_kni_alloc shall not be called before rte_kni_init() has been
* called. rte_kni_alloc is thread safe.
*
+ * The mempool should have capacity of more than "2 x KNI_FIFO_COUNT_MAX"
+ * elements for each KNI interface allocated.
+ *
* @param pktmbuf_pool
* @param pktmbuf_pool
- * The mempool for allocting mbufs for packets.
+ * The mempool for alloc
a
ting mbufs for packets.
* @param conf
* The pointer to the configurations of the KNI device.
* @param ops
* @param conf
* The pointer to the configurations of the KNI device.
* @param ops