misc: move ppp to a plugin 56/41956/7
authorJoel Ahn <[email protected]>
Thu, 28 Nov 2024 21:54:10 +0000 (13:54 -0800)
committerDave Wallace <[email protected]>
Fri, 6 Dec 2024 22:18:42 +0000 (22:18 +0000)
commit72bd2e585d75b88911956d721753682dfa24001a
treebed016a036da7966897c19316a465b30376b38ad
parent41ae1e20e6cc768e5562ad89d1f35c63d471b9b9
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 <[email protected]>
18 files changed:
docs/spelling_wordlist.txt
src/plugins/cdp/cdp_periodic.c
src/plugins/osi/node.c
src/plugins/ppp/CMakeLists.txt [new file with mode: 0644]
src/plugins/ppp/error.def [moved from src/vnet/ppp/error.def with 100% similarity]
src/plugins/ppp/node.c [moved from src/vnet/ppp/node.c with 98% similarity]
src/plugins/ppp/packet.h [moved from src/vnet/ppp/packet.h with 100% similarity]
src/plugins/ppp/pg.c [moved from src/vnet/ppp/pg.c with 99% similarity]
src/plugins/ppp/plugin.c [new file with mode: 0644]
src/plugins/ppp/ppp.c [moved from src/vnet/ppp/ppp.c with 90% similarity]
src/plugins/ppp/ppp.h [moved from src/vnet/ppp/ppp.h with 94% similarity]
src/plugins/pppoe/pppoe.c
src/plugins/pppoe/pppoe_cp_node.c
src/plugins/pppoe/pppoe_decap.c
src/vnet/CMakeLists.txt
src/vnet/ip/ip4_forward.c
src/vnet/ip/ip4_input.c
src/vnet/ip/ip6_input.c