FD.io VPP  v21.01.1
Vector Packet Processing
plugin.c File Reference
+ Include dependency graph for plugin.c:

Go to the source code of this file.

Macros

#define PLUGIN_LOG_DBG(...)   do {vlib_log_debug (vat_builtin_logger, __VA_ARGS__);} while(0)
 
#define PLUGIN_LOG_ERR(...)   do {vlib_log_err (vat_builtin_logger, __VA_ARGS__);} while(0)
 
#define PLUGIN_LOG_NOTICE(...)   do {vlib_log_notice (vat_builtin_logger, __VA_ARGS__);} while(0)
 
#define QUOTE_(x)   #x
 
#define QUOTE(x)   QUOTE_(x)
 

Functions

static int load_one_vat_plugin (plugin_main_t *pm, plugin_info_t *pi)
 
static u8 ** split_plugin_path (plugin_main_t *pm)
 
int vat_load_new_plugins (plugin_main_t *pm)
 
int vat_plugin_init (vat_main_t *vam)
 

Variables

plugin_main_t vat_plugin_main
 
static vlib_log_class_t vat_builtin_logger
 
char * vat_plugin_path
 
char * vat_plugin_name_filter = 0
 

Macro Definition Documentation

◆ PLUGIN_LOG_DBG

#define PLUGIN_LOG_DBG (   ...)    do {vlib_log_debug (vat_builtin_logger, __VA_ARGS__);} while(0)

Definition at line 28 of file plugin.c.

◆ PLUGIN_LOG_ERR

#define PLUGIN_LOG_ERR (   ...)    do {vlib_log_err (vat_builtin_logger, __VA_ARGS__);} while(0)

Definition at line 30 of file plugin.c.

◆ PLUGIN_LOG_NOTICE

#define PLUGIN_LOG_NOTICE (   ...)    do {vlib_log_notice (vat_builtin_logger, __VA_ARGS__);} while(0)

Definition at line 32 of file plugin.c.

◆ QUOTE

#define QUOTE (   x)    QUOTE_(x)

Definition at line 190 of file plugin.c.

◆ QUOTE_

#define QUOTE_ (   x)    #x

Definition at line 189 of file plugin.c.

Function Documentation

◆ load_one_vat_plugin()

static int load_one_vat_plugin ( plugin_main_t pm,
plugin_info_t pi 
)
static

Definition at line 36 of file plugin.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ split_plugin_path()

static u8** split_plugin_path ( plugin_main_t pm)
static

Definition at line 85 of file plugin.c.

+ Here is the caller graph for this function:

◆ vat_load_new_plugins()

int vat_load_new_plugins ( plugin_main_t pm)

Definition at line 112 of file plugin.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vat_plugin_init()

int vat_plugin_init ( vat_main_t *  vam)

Definition at line 197 of file plugin.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ vat_builtin_logger

vlib_log_class_t vat_builtin_logger
static

Definition at line 26 of file plugin.c.

◆ vat_plugin_main

plugin_main_t vat_plugin_main

Definition at line 24 of file plugin.c.

◆ vat_plugin_name_filter

char* vat_plugin_name_filter = 0

Definition at line 194 of file plugin.c.

◆ vat_plugin_path

char* vat_plugin_path

Definition at line 36 of file main.c.