FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
nsh_md2_ioam_export_thread.c
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Cisco and/or its affiliates.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at:
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
/*
16
* nsh_md2_ioam_export_thread.c
17
*/
18
#include <
vnet/api_errno.h
>
19
#include <
vppinfra/pool.h
>
20
#include <
vnet/ethernet/ethernet.h
>
21
#include <
ioam/export-common/ioam_export.h
>
22
23
static
vlib_node_registration_t
nsh_md2_ioam_export_process_node
;
24
extern
ioam_export_main_t
nsh_md2_ioam_export_main
;
25
26
static
uword
27
nsh_md2_ioam_export_process
(
vlib_main_t
*
vm
,
28
vlib_node_runtime_t
*
rt
,
vlib_frame_t
*
f
)
29
{
30
return
(
ioam_export_process_common
(&
nsh_md2_ioam_export_main
,
31
vm
,
rt
,
f
,
32
nsh_md2_ioam_export_process_node
.index));
33
}
34
35
36
/* *INDENT-OFF* */
37
VLIB_REGISTER_NODE
(
nsh_md2_ioam_export_process_node
,
static
) =
38
{
39
.function =
nsh_md2_ioam_export_process
,
40
.type =
VLIB_NODE_TYPE_PROCESS
,
41
.name =
"nsh-md2-ioam-export-process"
,
42
};
43
/* *INDENT-ON* */
44
45
/*
46
* fd.io coding-style-patch-verification: ON
47
*
48
* Local Variables:
49
* eval: (c-set-style "gnu")
50
* End:
51
*/
ioam_export.h
ioam_export_process_common
static uword ioam_export_process_common(ioam_export_main_t *em, vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f, u32 index)
Definition:
ioam_export.h:360
f
vlib_frame_t * f
Definition:
interface_output.c:1080
vm
vlib_main_t * vm
X-connect all packets from the HOST to the PHY.
Definition:
nat44_ei.c:3047
nsh_md2_ioam_export_process_node
static vlib_node_registration_t nsh_md2_ioam_export_process_node
(constructor) VLIB_REGISTER_NODE (nsh_md2_ioam_export_process_node)
Definition:
nsh_md2_ioam_export_thread.c:23
vlib_frame_t
Definition:
node.h:372
ethernet.h
uword
u64 uword
Definition:
types.h:112
pool.h
Fixed length block allocator. Pools are built from clib vectors and bitmaps. Use pools when repeatedl...
nsh_md2_ioam_export_main
ioam_export_main_t nsh_md2_ioam_export_main
Definition:
nsh_md2_ioam_export.c:32
vlib_node_registration_t
struct _vlib_node_registration vlib_node_registration_t
nsh_md2_ioam_export_process
static uword nsh_md2_ioam_export_process(vlib_main_t *vm, vlib_node_runtime_t *rt, vlib_frame_t *f)
Definition:
nsh_md2_ioam_export_thread.c:27
ioam_export_main_t
Definition:
ioam_export.h:47
VLIB_NODE_TYPE_PROCESS
@ VLIB_NODE_TYPE_PROCESS
Definition:
node.h:84
vlib_main_t
Definition:
main.h:102
rt
vnet_interface_output_runtime_t * rt
Definition:
interface_output.c:399
api_errno.h
vlib_node_runtime_t
Definition:
node.h:454
VLIB_REGISTER_NODE
#define VLIB_REGISTER_NODE(x,...)
Definition:
node.h:169
src
plugins
nsh
nsh-md2-ioam
export-nsh-md2-ioam
nsh_md2_ioam_export_thread.c
Generated on Sat Jan 8 2022 10:04:18 for FD.io VPP by
1.8.17