Fix ssh timeout issue
[samplevnf.git] / VNFs / DPPD-PROX / prox_args.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 _PROX_ARGS_H_
18 #define _PROX_ARGS_H_
19
20 #include "lconf.h"
21
22 struct rte_cfg {
23         /* DPDK standard options */
24         uint32_t memory;         /* amount of asked memory */
25         uint32_t force_nchannel; /* force number of channels */
26         uint32_t force_nrank;    /* force number of ranks */
27         uint32_t no_hugetlbfs;   /* true to disable hugetlbfs */
28         uint32_t no_pci;         /* true to disable PCI */
29         uint32_t no_hpet;        /* true to disable HPET */
30         uint32_t no_shconf;      /* true if there is no shared config */
31         char    *hugedir;        /* dir where hugetlbfs is mounted */
32         char    *eal;            /* any additional eal option */
33         uint32_t no_output;      /* disable EAL debug output */
34 };
35
36 int prox_parse_args(int argc, char **argv);
37 int prox_read_config_file(void);
38 int prox_setup_rte(const char *prog_name);
39 const char *get_cfg_dir(void);
40
41 #endif /* _PROX_ARGS_H_ */