FD.io VPP  v17.04-9-g99c0734
Vector Packet Processing
flowperpkt.h
Go to the documentation of this file.
1 /*
2  * flowperpkt.h - skeleton vpp engine plug-in header file
3  *
4  * Copyright (c) <current-year> <your-organization>
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at:
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef __included_flowperpkt_h__
18 #define __included_flowperpkt_h__
19 
20 #include <vnet/vnet.h>
21 #include <vnet/ip/ip.h>
22 #include <vnet/ethernet/ethernet.h>
23 
24 #include <vppinfra/hash.h>
25 #include <vppinfra/error.h>
26 #include <vnet/flow/flow_report.h>
28 
29 /**
30  * @file
31  * @brief flow-per-packet plugin header file
32  */
33 typedef struct
34 {
35  /** API message ID base */
37 
38  /** Have the reports [templates] been created? */
41 
42  /** stream/template IDs */
45 
46  /** ipfix buffers under construction, per-worker thread */
49 
50  /** frames containing ipfix buffers, per-worker thread */
53 
54  /** next record offset, per worker thread */
57 
58  /** Time reference pair */
61 
62  /** convenience vlib_main_t pointer */
64  /** convenience vnet_main_t pointer */
67 
68 typedef enum
69 {
74 
76 
78 
81 
82 #endif /* __included_flowperpkt_h__ */
83 
84 /*
85  * fd.io coding-style-patch-verification: ON
86  *
87  * Local Variables:
88  * eval: (c-set-style "gnu")
89  * End:
90  */
vlib_frame_t ** l2_frames_per_worker
Definition: flowperpkt.h:52
u16 * ipv4_next_record_offset_per_worker
next record offset, per worker thread
Definition: flowperpkt.h:55
u64 nanosecond_time_0
Time reference pair.
Definition: flowperpkt.h:59
struct _vlib_node_registration vlib_node_registration_t
vlib_main_t * vlib_main
convenience vlib_main_t pointer
Definition: flowperpkt.h:63
u16 msg_id_base
API message ID base.
Definition: flowperpkt.h:36
vlib_buffer_t ** ipv4_buffers_per_worker
ipfix buffers under construction, per-worker thread
Definition: flowperpkt.h:47
int ipv4_report_created
Have the reports [templates] been created?
Definition: flowperpkt.h:39
vlib_frame_t ** ipv4_frames_per_worker
frames containing ipfix buffers, per-worker thread
Definition: flowperpkt.h:51
unsigned long u64
Definition: types.h:89
vlib_node_registration_t flowperpkt_ipv4_node
IPFIX ipv4 flow-per-packet graph node.
Definition: node.c:547
vnet_main_t * vnet_main
convenience vnet_main_t pointer
Definition: flowperpkt.h:65
u16 ipv4_report_id
stream/template IDs
Definition: flowperpkt.h:43
vlib_buffer_t ** l2_buffers_per_worker
Definition: flowperpkt.h:48
void flowperpkt_flush_callback_ipv4(void)
Definition: node.c:313
u16 * l2_next_record_offset_per_worker
Definition: flowperpkt.h:56
flowperpkt_variant_t
Definition: flowperpkt.h:68
flowperpkt_main_t flowperpkt_main
Definition: flowperpkt.c:54
void flowperpkt_flush_callback_l2(void)
Definition: l2_node.c:312
unsigned short u16
Definition: types.h:57
double f64
Definition: types.h:142