1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
9 * #include <rte_ring.h>
14 * Define a client structure with all needed info, including
15 * stats from the clients.
18 struct rte_ring *rx_q;
20 /* these stats hold how many packets the client will actually receive,
21 * and how many packets were dropped because the client's queue was full.
22 * The port-info stats, in contrast, record how many packets were received
23 * or transmitted on an actual NIC port.
27 volatile uint64_t rx_drop;
31 extern struct client *clients;
33 /* the shared port information: port numbers, rx and tx stats etc. */
34 extern struct port_info *ports;
36 extern struct rte_mempool *pktmbuf_pool;
37 extern uint8_t num_clients;
38 extern unsigned num_sockets;
39 extern struct port_info *ports;
41 int init(int argc, char *argv[]);
43 #endif /* ifndef _INIT_H_ */