FD.io VPP  v19.01.3-6-g70449b9b9
Vector Packet Processing
mfib_signal.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2016 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 #ifndef __MFIB_SIGNAL_H__
17 #define __MFIB_SIGNAL_H__
18 
19 #include <vlib/vlib.h>
20 #include <vnet/mfib/mfib_types.h>
21 #include <vnet/mfib/mfib_itf.h>
22 #include <vnet/mfib/mfib_entry.h>
23 
24 #define MFIB_SIGNAL_BUFFER_SIZE 255
25 
26 /**
27  * A pair of indicies, for the entry and interface resp.
28  */
29 typedef struct mfib_signal_t_
30 {
33 
34  /**
35  * @brief A buffer copied from the DP plane that triggered the signal
36  */
38 
41 
42 
43 extern void mfib_signal_push(const mfib_entry_t *mfe,
44  mfib_itf_t *mfi,
45  vlib_buffer_t *b0);
46 extern void mfib_signal_remove_itf(const mfib_itf_t *mfi);
47 
48 extern void mfib_signal_module_init(void);
49 
51 
52 extern void vl_mfib_signal_send_one(struct vl_api_registration_ *q,
53  u32 context,
54  const mfib_signal_t *mfs);
55 extern int mfib_signal_send_one(struct vl_api_registration_ *reg,
56  u32 context);
57 
58 #endif
59 
void mfib_signal_push(const mfib_entry_t *mfe, mfib_itf_t *mfi, vlib_buffer_t *b0)
Definition: mfib_signal.c:141
A pair of indicies, for the entry and interface resp.
Definition: mfib_signal.h:29
An entry in a FIB table.
Definition: mfib_entry.h:32
u32 index_t
A Data-Path Object is an object that represents actions that are applied to packets are they are swit...
Definition: dpo.h:41
void vl_mfib_signal_send_one(struct vl_api_registration_ *q, u32 context, const mfib_signal_t *mfs)
Definition: ip_api.c:1838
unsigned char u8
Definition: types.h:56
unsigned int u32
Definition: types.h:88
int mfib_signal_send_one(struct vl_api_registration_ *reg, u32 context)
Definition: mfib_signal.c:94
#define MFIB_SIGNAL_BUFFER_SIZE
Definition: mfib_signal.h:24
An API client registration, only in vpp/vlib.
Definition: api_common.h:45
struct mfib_signal_t_ mfib_signal_t
A pair of indicies, for the entry and interface resp.
u32 fib_node_index_t
A typedef of a node index.
Definition: fib_types.h:30
index_t mfs_itf
Definition: mfib_signal.h:32
An interface associated with a particular MFIB entry.
Definition: mfib_itf.h:25
void mfib_signal_remove_itf(const mfib_itf_t *mfi)
Definition: mfib_signal.c:184
u8 mfs_buffer[MFIB_SIGNAL_BUFFER_SIZE]
A buffer copied from the DP plane that triggered the signal.
Definition: mfib_signal.h:37
void mfib_signal_module_init(void)
Definition: mfib_signal.c:66
fib_node_index_t mfs_entry
Definition: mfib_signal.h:31