Merge "Fix latency accuracy and dumping latencies to file"
[samplevnf.git] / VNFs / DPPD-PROX / main.h
1 /*
2 // Copyright (c) 2010-2017 Intel Corporation
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //     http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 */
16
17 #ifndef _MAIN_H_
18 #define _MAIN_H_
19
20 #include <rte_version.h>
21 #include "hash_entry_types.h"
22 #ifdef RTE_EXEC_ENV_BAREMETAL
23 #error A linuxapp configuration target is required!
24 #endif
25
26 #if RTE_VERSION < RTE_VERSION_NUM(1,7,0,0)
27 #error At least Intel(R) DPDK version 1.7.0 is required
28 #endif
29
30 #ifndef __INTEL_COMPILER
31 #if __GNUC__ == 4 && __GNUC_MINOR__ < 7
32 #error Only GCC versions 4.7 and above supported
33 #endif
34 #endif
35
36 struct rte_ring;
37 // in main.c
38 extern uint8_t port_status[];
39 extern struct rte_ring *ctrl_rings[];
40
41 #endif /* _MAIN_H_ */