nsh_md2_ioam_export_thread.c revision c323cabf
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 <ioam/export-common/ioam_export.h>
21
22static vlib_node_registration_t nsh_md2_ioam_export_process_node;
23extern ioam_export_main_t nsh_md2_ioam_export_main;
24
25static uword
26nsh_md2_ioam_export_process (vlib_main_t * vm,
27			       vlib_node_runtime_t * rt, vlib_frame_t * f)
28{
29  return (ioam_export_process_common (&nsh_md2_ioam_export_main,
30				      vm, rt, f,
31				      nsh_md2_ioam_export_process_node.index));
32}
33
34
35/* *INDENT-OFF* */
36VLIB_REGISTER_NODE (nsh_md2_ioam_export_process_node, static) =
37{
38 .function = nsh_md2_ioam_export_process,
39 .type = VLIB_NODE_TYPE_PROCESS,
40 .name = "nsh-md2-ioam-export-process",
41};
42/* *INDENT-ON* */
43
44/*
45 * fd.io coding-style-patch-verification: ON
46 *
47 * Local Variables:
48 * eval: (c-set-style "gnu")
49 * End:
50 */
51