summaryrefslogtreecommitdiffstats
path: root/src/vnet/classify/flow_classify_node.c
diff options
context:
space:
mode:
authorFilip Tehlar <ftehlar@cisco.com>2019-03-06 04:50:34 -0800
committerDamjan Marion <dmarion@me.com>2019-03-07 10:27:20 +0000
commite8cb521074582fc4a27f21717691750063b73ef5 (patch)
tree478d1189fbcd848f88d8a3fd8fcc5e93fad6b579 /src/vnet/classify/flow_classify_node.c
parent30d93489d214907ca182a9985a1084f2882875fc (diff)
classify: migrate old MULTIARCH macros to VLIB_NODE_FN
Change-Id: I01730ec9eb8033074c8710daf0848c3573293aeb Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
Diffstat (limited to 'src/vnet/classify/flow_classify_node.c')
-rw-r--r--src/vnet/classify/flow_classify_node.c18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/vnet/classify/flow_classify_node.c b/src/vnet/classify/flow_classify_node.c
index 5941b6dd9b3..865281ec032 100644
--- a/src/vnet/classify/flow_classify_node.c
+++ b/src/vnet/classify/flow_classify_node.c
@@ -275,16 +275,15 @@ flow_classify_inline (vlib_main_t * vm,
return frame->n_vectors;
}
-static uword
-ip4_flow_classify (vlib_main_t * vm,
- vlib_node_runtime_t * node, vlib_frame_t * frame)
+VLIB_NODE_FN (ip4_flow_classify_node) (vlib_main_t * vm,
+ vlib_node_runtime_t * node,
+ vlib_frame_t * frame)
{
return flow_classify_inline (vm, node, frame, FLOW_CLASSIFY_TABLE_IP4);
}
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (ip4_flow_classify_node) = {
- .function = ip4_flow_classify,
.name = "ip4-flow-classify",
.vector_size = sizeof (u32),
.format_trace = format_flow_classify_trace,
@@ -297,18 +296,15 @@ VLIB_REGISTER_NODE (ip4_flow_classify_node) = {
};
/* *INDENT-ON* */
-VLIB_NODE_FUNCTION_MULTIARCH (ip4_flow_classify_node, ip4_flow_classify);
-
-static uword
-ip6_flow_classify (vlib_main_t * vm,
- vlib_node_runtime_t * node, vlib_frame_t * frame)
+VLIB_NODE_FN (ip6_flow_classify_node) (vlib_main_t * vm,
+ vlib_node_runtime_t * node,
+ vlib_frame_t * frame)
{
return flow_classify_inline (vm, node, frame, FLOW_CLASSIFY_TABLE_IP6);
}
/* *INDENT-OFF* */
VLIB_REGISTER_NODE (ip6_flow_classify_node) = {
- .function = ip6_flow_classify,
.name = "ip6-flow-classify",
.vector_size = sizeof (u32),
.format_trace = format_flow_classify_trace,
@@ -322,8 +318,6 @@ VLIB_REGISTER_NODE (ip6_flow_classify_node) = {
/* *INDENT-ON* */
-VLIB_NODE_FUNCTION_MULTIARCH (ip6_flow_classify_node, ip6_flow_classify);
-
static clib_error_t *
flow_classify_init (vlib_main_t * vm)