aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mdata
AgeCommit message (Expand)AuthorFilesLines
2022-03-23vnet: Remove the unused fields from opaque2Neale Ranns1-7/+6
2021-12-31misc: Remove the unused GBP fields from the buffer meta-dataNeale Ranns1-2/+0
2021-10-13docs: convert plugins doc md->rstNathan Skrzypczak2-24/+26
2021-10-04docs: plugin comment nitfixesNathan Skrzypczak1-8/+8
2021-03-26vlib: introduce vlib_get_main_by_index(), vlib_get_n_threads()Damjan Marion1-6/+7
2020-07-16misc: add callback hooks and refactor pmcTom Seidenberg1-9/+13
2020-05-06docs: clean up make docs jobPaul Vinciguerra2-2/+4
2020-01-10docs: Edit FEATURE.yaml files so they can be publishedJohn DeNisco1-3/+3
2019-11-10dhcp: ipv6 prefix delegation improvementsDave Barach1-1/+1
2019-11-09build: Fix typo introduced in src/plugins/mdata/FEATURE.yamlPaul Vinciguerra1-1/+1
2019-11-06build: add yaml file linting to make checkstylePaul Vinciguerra1-1/+3
2019-11-05docs: fix issues with src/scripts/fts.pyPaul Vinciguerra1-2/+2
2019-10-25mdata: buffer metadata change tracker pluginDave Barach7-0/+746
Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */ }
/*
 * Copyright (c) 2016 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __MFIB_SIGNAL_H__
#define __MFIB_SIGNAL_H__

#include <vlib/vlib.h>
#include <vnet/mfib/mfib_types.h>
#include <vnet/mfib/mfib_itf.h>
#include <vnet/mfib/mfib_entry.h>

#define MFIB_SIGNAL_BUFFER_SIZE 255

/**
 * A pair of indicies, for the entry and interface resp.
 */
typedef struct mfib_signal_t_
{
    fib_node_index_t mfs_entry;
    index_t mfs_itf;

    /**
     * @brief A buffer copied from the DP plane that triggered the signal
     */
    u8 mfs_buffer[MFIB_SIGNAL_BUFFER_SIZE];

    u8 mfs_buffer_len;
} mfib_signal_t;


extern void mfib_signal_push(const mfib_entry_t *mfe,
                             mfib_itf_t *mfi,
                             vlib_buffer_t *b0);
extern void mfib_signal_remove_itf(const mfib_itf_t *mfi);

extern void mfib_signal_module_init(void);

struct vl_api_registration_;

extern void vl_mfib_signal_send_one(struct vl_api_registration_ *q,
                                    u32 context,
                                    const mfib_signal_t *mfs);
extern int mfib_signal_send_one(struct vl_api_registration_ *reg,
                                u32 context);

#endif