diff options
author | Hadi Rayan Al-Sandid <halsandi@cisco.com> | 2024-08-01 17:10:54 +0200 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2024-08-22 08:00:52 +0000 |
commit | 8629336fa502b5859ed46bcc1976c824470092b3 (patch) | |
tree | 72c5757fba8d7009111a24cd6f814cf13b386bec /src/vnet/llc/llc.c | |
parent | 85ce93160fa71c5e6fb9140704c07e6d8989889d (diff) |
misc: move osi to plugin
Type: refactor
This patch moves osi into a plugin, and also modifies
the init functions of llc and snap to preserve init
order dependency (llc_init --> osi_init --> snap_init).
While the initial intent was to move osi/llc/snap together
into a single plugin, there exists a dependency on llc
in vnet/ethernet, which would require further refactoring
and testing work.
Change-Id: Ic0eff030ee29c8d316c0e0fe13931451aa193527
Signed-off-by: Hadi Rayan Al-Sandid <halsandi@cisco.com>
Diffstat (limited to 'src/vnet/llc/llc.c')
-rw-r--r-- | src/vnet/llc/llc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/vnet/llc/llc.c b/src/vnet/llc/llc.c index 4cbf17d48df..e17eaa6fd25 100644 --- a/src/vnet/llc/llc.c +++ b/src/vnet/llc/llc.c @@ -208,7 +208,6 @@ add_protocol (llc_main_t * pm, llc_protocol_t protocol, char *protocol_name) static clib_error_t * llc_init (vlib_main_t * vm) { - clib_error_t *error; llc_main_t *pm = &llc_main; clib_memset (pm, 0, sizeof (pm[0])); @@ -221,9 +220,6 @@ llc_init (vlib_main_t * vm) foreach_llc_protocol; #undef _ - if ((error = vlib_call_init_function (vm, snap_init))) - return error; - return vlib_call_init_function (vm, llc_input_init); } |