1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2016-2017 Intel Corporation
9 * #include <rte_ring.h>
14 * Define a node structure with all needed info, including
15 * stats from the nodes.
18 struct rte_ring *rx_q;
20 /* these stats hold how many packets the node will actually receive,
21 * and how many packets were dropped because the node'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.
31 extern struct rte_efd_table *efd_table;
32 extern struct node *nodes;
35 * shared information between server and nodes: number of nodes,
36 * port numbers, rx and tx stats etc.
38 extern struct shared_info *info;
40 extern struct rte_mempool *pktmbuf_pool;
41 extern uint8_t num_nodes;
42 extern unsigned int num_sockets;
43 extern uint32_t num_flows;
45 int init(int argc, char *argv[]);
47 #endif /* ifndef _INIT_H_ */