FD.io VPP  v16.09
Vector Packet Processing
cnat_global.h
Go to the documentation of this file.
1 /*
2  *------------------------------------------------------------------
3  * cnat_global.h - global definition and variables
4  * to be used by non cnat files
5  *
6  * Copyright (c) 2007-2012 Cisco and/or its affiliates.
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at:
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  *------------------------------------------------------------------
19  */
20 
21 #ifndef __CNAT_GLOBAL_H__
22 #define __CNAT_GLOBAL_H__
23 
24 /* gloable variables */
25 
26 extern u8 cnat_db_init_done;
27 extern u32 cnat_current_time;
32 extern u8 nfv9_configured;
35 
38 
41 
44 
46 
48 
49 #if 1 //DSLITE_DEF
56 #endif
57 /* sf/ctx allocation error collection declarations */
58 #define COLLECT_FREQ_FACTOR 100
59 #define NUM_SECONDS_TO_WAIT 10
60 #define COUNTER_BUFFER_SIZE 25
61 
62 extern u32 null_enq_pkt;
63 extern u32 null_deq_pkt;
64 
65 extern u32 null_enq_ctx;
66 extern u32 null_deq_ctx;
67 
68 extern u32 null_enq_wqe;
69 extern u32 null_deq_wqe;
70 
71 extern u32 ctx_alloc_errs;
72 extern u32 sf_alloc_errs;
73 
74 extern u32 rcv_pkt_errs;
75 
81 
82 #define COUNTER_BUFFER_SIZE 25
84 
85 //#define DISABLE_ICMP_THROTTLE_FOR_DEBUG_PURPOSE
86 
87 #endif /*__CNAT_GLOBAL_H__*/
u32 cnat_current_time
Definition: cnat_global.c:29
u8 cnat_db_init_done
Definition: cnat_db_v2.c:43
u32 dslite_translation_delete_rate
u64 in2out_drops_resource_depletion
Definition: cnat_db_v2.c:230
u32 total_address_pool_allocated
Definition: cnat_show.c:43
#define COUNTER_BUFFER_SIZE
Definition: cnat_global.h:82
u32 dslite_out2in_forwarding_rate
u32 null_deq_wqe
Definition: cnat_global.c:39
u32 ctx_alloc_errs
Definition: cnat_global.c:41
u32 rcv_pkt_errs
Definition: cnat_global.c:44
u32 sf_alloc_errs
Definition: cnat_global.c:42
unsigned long u64
Definition: types.h:89
u32 dslite_translation_create_count
u32 null_enq_ctx
Definition: cnat_global.c:35
u64 no_translation_entry_drops
Definition: cnat_db_v2.c:231
u32 dslite_in2out_forwarding_count
Definition: cnat_global.h:54
u8 nfv9_configured
Definition: cnat_global.c:30
u32 null_enq_wqe
Definition: cnat_global.c:38
u32 in2out_forwarding_rate
u32 dslite_translation_create_rate
struct counter_array_t counter_array_t
u64 in2out_drops_port_limit_exceeded
Definition: cnat_db_v2.c:228
unsigned int u32
Definition: types.h:88
u32 in2out_forwarding_count
u32 nat44_active_translations
struct counter_array_t err_cnt_arr[COUNTER_BUFFER_SIZE]
Definition: cnat_global.h:83
unsigned char u8
Definition: types.h:56
u32 out2in_forwarding_rate
u32 null_deq_pkt
Definition: cnat_global.c:33
u32 translation_delete_rate
u32 translation_delete_count
u32 null_enq_pkt
Definition: cnat_global.c:32
u32 translation_create_rate
u32 out2in_forwarding_count
u32 null_deq_ctx
Definition: cnat_global.c:36
u64 in2out_drops_system_limit_reached
Definition: cnat_db_v2.c:229
u32 translation_create_count