From 72bd2e585d75b88911956d721753682dfa24001a Mon Sep 17 00:00:00 2001 From: Joel Ahn <joeahn@cisco.com> Date: Thu, 28 Nov 2024 13:54:10 -0800 Subject: misc: move ppp to a plugin Type: refactor Move PPP folder under vnet to the plugin folder, and modify some of path of the #inlude<header> to the new path. Add a plugin.c file to register a plugin. Resolve ip4_input and ip6_input's dependency on PPP functions by moving those calls to PPP's initialization. Resolve osi's inter-plugin dependency on PPP by having it retrieve the function pointer Add ppp to the list of valid spelling words JIRA: VPP-2052 Change-Id: I1a26ef0663a91857d13f7d87a3bb14bc38893194 Signed-off-by: Joel Ahn <joeahn@cisco.com> --- src/vnet/ip/ip4_input.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/vnet/ip/ip4_input.c') diff --git a/src/vnet/ip/ip4_input.c b/src/vnet/ip/ip4_input.c index 106d17da3cb..af2b89ab2ec 100644 --- a/src/vnet/ip/ip4_input.c +++ b/src/vnet/ip/ip4_input.c @@ -40,7 +40,6 @@ #include <vnet/ip/ip4_input.h> #include <vnet/ethernet/ethernet.h> #include <vnet/pg/pg.h> -#include <vnet/ppp/ppp.h> #include <vnet/hdlc/hdlc.h> #include <vnet/util/throttle.h> @@ -411,7 +410,6 @@ ip4_init (vlib_main_t * vm) clib_error_t *error; ethernet_register_input_type (vm, ETHERNET_TYPE_IP4, ip4_input_node.index); - ppp_register_input_protocol (vm, PPP_PROTOCOL_ip4, ip4_input_node.index); hdlc_register_input_protocol (vm, HDLC_PROTOCOL_ip4, ip4_input_node.index); { -- cgit 1.2.3-korg