34 #ifndef _RTE_DISTRIBUTE_H_
35 #define _RTE_DISTRIBUTE_H_
49 #define RTE_DISTRIBUTOR_NAMESIZE 32
51 struct rte_distributor;
70 struct rte_distributor *
72 unsigned num_workers);
107 struct rte_mbuf **mbufs,
unsigned num_mbufs);
125 struct rte_mbuf **mbufs,
unsigned max_mbufs);
181 unsigned worker_id,
struct rte_mbuf *oldpkt);
221 unsigned worker_id,
struct rte_mbuf *oldpkt);
struct rte_mbuf * rte_distributor_poll_pkt(struct rte_distributor *d, unsigned worker_id)
int rte_distributor_return_pkt(struct rte_distributor *d, unsigned worker_id, struct rte_mbuf *mbuf)
void rte_distributor_request_pkt(struct rte_distributor *d, unsigned worker_id, struct rte_mbuf *oldpkt)
int rte_distributor_process(struct rte_distributor *d, struct rte_mbuf **mbufs, unsigned num_mbufs)
int rte_distributor_returned_pkts(struct rte_distributor *d, struct rte_mbuf **mbufs, unsigned max_mbufs)
int rte_distributor_flush(struct rte_distributor *d)
void rte_distributor_clear_returns(struct rte_distributor *d)
struct rte_mbuf * rte_distributor_get_pkt(struct rte_distributor *d, unsigned worker_id, struct rte_mbuf *oldpkt)
struct rte_distributor * rte_distributor_create(const char *name, unsigned socket_id, unsigned num_workers)