diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2019-02-28 05:58:56 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-03-01 20:25:39 +0000 |
commit | 01f5c90259766708c66ed1548398fd52ebbfadb0 (patch) | |
tree | 3a309e2c6193ea8ac4daafb2e4f56b770132749c /src/plugins/pppoe/pppoe_cp_node.c | |
parent | bbe2de1fbf06da4f420c292d3e7c73f9b588c53e (diff) |
pppoe: migrate old MULTIARCH macros to VLIB_NODE_FN
Change-Id: I0af8104f6d35820aa39d22cd23d4f9211d61faa0
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/plugins/pppoe/pppoe_cp_node.c')
-rw-r--r-- | src/plugins/pppoe/pppoe_cp_node.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/plugins/pppoe/pppoe_cp_node.c b/src/plugins/pppoe/pppoe_cp_node.c index 884d207d655..3f866450cfb 100644 --- a/src/plugins/pppoe/pppoe_cp_node.c +++ b/src/plugins/pppoe/pppoe_cp_node.c @@ -19,8 +19,6 @@ #include <vnet/ppp/packet.h> #include <pppoe/pppoe.h> -vlib_node_registration_t pppoe_cp_dispatch_node; - #define foreach_pppoe_cp_next \ _(DROP, "error-drop") \ _(INTERFACE, "interface-output" ) \ @@ -66,8 +64,7 @@ static u8 * format_pppoe_cp_trace (u8 * s, va_list * args) return s; } -static uword -pppoe_cp_dispatch (vlib_main_t * vm, +VLIB_NODE_FN (pppoe_cp_dispatch_node) (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * from_frame) { @@ -236,7 +233,6 @@ pppoe_cp_dispatch (vlib_main_t * vm, } VLIB_REGISTER_NODE (pppoe_cp_dispatch_node) = { - .function = pppoe_cp_dispatch, .name = "pppoe-cp-dispatch", /* Takes a vector of packets. */ .vector_size = sizeof (u32), @@ -251,5 +247,3 @@ VLIB_REGISTER_NODE (pppoe_cp_dispatch_node) = { .format_trace = format_pppoe_cp_trace, }; -VLIB_NODE_FUNCTION_MULTIARCH (pppoe_cp_dispatch_node, pppoe_cp_dispatch) - |