5 #ifndef _RTE_DISTRIB_V20_H_
6 #define _RTE_DISTRIB_V20_H_
20 #define RTE_DISTRIBUTOR_NAMESIZE 32
22 struct rte_distributor_v20;
41 struct rte_distributor_v20 *
43 unsigned int num_workers);
78 struct rte_mbuf **mbufs,
unsigned int num_mbufs);
96 struct rte_mbuf **mbufs,
unsigned int max_mbufs);
152 unsigned int worker_id,
struct rte_mbuf *oldpkt);
168 unsigned int worker_id,
struct rte_mbuf *mbuf);
192 unsigned int worker_id,
struct rte_mbuf *oldpkt);
212 unsigned int worker_id);
struct rte_mbuf * rte_distributor_poll_pkt_v20(struct rte_distributor_v20 *d, unsigned int worker_id)
int rte_distributor_flush_v20(struct rte_distributor_v20 *d)
struct rte_mbuf * rte_distributor_get_pkt_v20(struct rte_distributor_v20 *d, unsigned int worker_id, struct rte_mbuf *oldpkt)
void rte_distributor_clear_returns_v20(struct rte_distributor_v20 *d)
int rte_distributor_return_pkt_v20(struct rte_distributor_v20 *d, unsigned int worker_id, struct rte_mbuf *mbuf)
int rte_distributor_returned_pkts_v20(struct rte_distributor_v20 *d, struct rte_mbuf **mbufs, unsigned int max_mbufs)
void rte_distributor_request_pkt_v20(struct rte_distributor_v20 *d, unsigned int worker_id, struct rte_mbuf *oldpkt)
int rte_distributor_process_v20(struct rte_distributor_v20 *d, struct rte_mbuf **mbufs, unsigned int num_mbufs)
struct rte_distributor_v20 * rte_distributor_create_v20(const char *name, unsigned int socket_id, unsigned int num_workers)