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
kni: fix ethtool build with kernel 4.11
[dpdk.git]
/
lib
/
librte_distributor
/
rte_distributor_v20.h
diff --git
a/lib/librte_distributor/rte_distributor_v20.h
b/lib/librte_distributor/rte_distributor_v20.h
index
b69aa27
..
f02e6aa
100644
(file)
--- a/
lib/librte_distributor/rte_distributor_v20.h
+++ b/
lib/librte_distributor/rte_distributor_v20.h
@@
-48,7
+48,7
@@
extern "C" {
#define RTE_DISTRIBUTOR_NAMESIZE 32 /**< Length of name for instance */
#define RTE_DISTRIBUTOR_NAMESIZE 32 /**< Length of name for instance */
-struct rte_distributor;
+struct rte_distributor
_v20
;
struct rte_mbuf;
/**
struct rte_mbuf;
/**
@@
-67,8
+67,8
@@
struct rte_mbuf;
* @return
* The newly created distributor instance
*/
* @return
* The newly created distributor instance
*/
-struct rte_distributor *
-rte_distributor_create(const char *name, unsigned int socket_id,
+struct rte_distributor
_v20
*
+rte_distributor_create
_v20
(const char *name, unsigned int socket_id,
unsigned int num_workers);
/* *** APIS to be called on the distributor lcore *** */
unsigned int num_workers);
/* *** APIS to be called on the distributor lcore *** */
@@
-103,7
+103,7
@@
rte_distributor_create(const char *name, unsigned int socket_id,
* The number of mbufs processed.
*/
int
* The number of mbufs processed.
*/
int
-rte_distributor_process
(struct rte_distributor
*d,
+rte_distributor_process
_v20(struct rte_distributor_v20
*d,
struct rte_mbuf **mbufs, unsigned int num_mbufs);
/**
struct rte_mbuf **mbufs, unsigned int num_mbufs);
/**
@@
-121,7
+121,7
@@
rte_distributor_process(struct rte_distributor *d,
* The number of mbufs returned in the mbufs array.
*/
int
* The number of mbufs returned in the mbufs array.
*/
int
-rte_distributor_returned_pkts
(struct rte_distributor
*d,
+rte_distributor_returned_pkts
_v20(struct rte_distributor_v20
*d,
struct rte_mbuf **mbufs, unsigned int max_mbufs);
/**
struct rte_mbuf **mbufs, unsigned int max_mbufs);
/**
@@
-136,7
+136,7
@@
rte_distributor_returned_pkts(struct rte_distributor *d,
* The number of queued/in-flight packets that were completed by this call.
*/
int
* The number of queued/in-flight packets that were completed by this call.
*/
int
-rte_distributor_flush
(struct rte_distributor
*d);
+rte_distributor_flush
_v20(struct rte_distributor_v20
*d);
/**
* Clears the array of returned packets used as the source for the
/**
* Clears the array of returned packets used as the source for the
@@
-148,7
+148,7
@@
rte_distributor_flush(struct rte_distributor *d);
* The distributor instance to be used
*/
void
* The distributor instance to be used
*/
void
-rte_distributor_clear_returns
(struct rte_distributor
*d);
+rte_distributor_clear_returns
_v20(struct rte_distributor_v20
*d);
/* *** APIS to be called on the worker lcores *** */
/*
/* *** APIS to be called on the worker lcores *** */
/*
@@
-177,7
+177,7
@@
rte_distributor_clear_returns(struct rte_distributor *d);
* A new packet to be processed by the worker thread.
*/
struct rte_mbuf *
* A new packet to be processed by the worker thread.
*/
struct rte_mbuf *
-rte_distributor_get_pkt
(struct rte_distributor
*d,
+rte_distributor_get_pkt
_v20(struct rte_distributor_v20
*d,
unsigned int worker_id, struct rte_mbuf *oldpkt);
/**
unsigned int worker_id, struct rte_mbuf *oldpkt);
/**
@@
-193,8
+193,8
@@
rte_distributor_get_pkt(struct rte_distributor *d,
* The previous packet being processed by the worker
*/
int
* The previous packet being processed by the worker
*/
int
-rte_distributor_return_pkt
(struct rte_distributor *d, unsigned int worker_i
d,
- struct rte_mbuf *mbuf);
+rte_distributor_return_pkt
_v20(struct rte_distributor_v20 *
d,
+
unsigned int worker_id,
struct rte_mbuf *mbuf);
/**
* API called by a worker to request a new packet to process.
/**
* API called by a worker to request a new packet to process.
@@
-217,7
+217,7
@@
rte_distributor_return_pkt(struct rte_distributor *d, unsigned int worker_id,
* The previous packet, if any, being processed by the worker
*/
void
* The previous packet, if any, being processed by the worker
*/
void
-rte_distributor_request_pkt
(struct rte_distributor
*d,
+rte_distributor_request_pkt
_v20(struct rte_distributor_v20
*d,
unsigned int worker_id, struct rte_mbuf *oldpkt);
/**
unsigned int worker_id, struct rte_mbuf *oldpkt);
/**
@@
-237,7
+237,7
@@
rte_distributor_request_pkt(struct rte_distributor *d,
* packet is yet available.
*/
struct rte_mbuf *
* packet is yet available.
*/
struct rte_mbuf *
-rte_distributor_poll_pkt
(struct rte_distributor
*d,
+rte_distributor_poll_pkt
_v20(struct rte_distributor_v20
*d,
unsigned int worker_id);
#ifdef __cplusplus
unsigned int worker_id);
#ifdef __cplusplus