From b040f98a88954ccf2e63fd7b2676865a2dbe0078 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 20 Oct 2020 14:59:43 -0700 Subject: misc: minimize dependencies on udp.h Type: improvement Signed-off-by: Florin Coras Change-Id: Id13f33843b230a1d169560742c4f7b2dc17d8718 --- src/vnet/flow/flow_api.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/vnet/flow/flow_api.c') diff --git a/src/vnet/flow/flow_api.c b/src/vnet/flow/flow_api.c index 9ae3802b6fe..b24c8510be5 100644 --- a/src/vnet/flow/flow_api.c +++ b/src/vnet/flow/flow_api.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -251,6 +252,7 @@ out: ({ rmp->flow_index = ntohl (flow_index); })); + /* *INDENT-ON* */ } static void @@ -259,8 +261,8 @@ vl_api_flow_del_t_handler (vl_api_flow_del_t * mp) vl_api_flow_add_reply_t *rmp; int rv = 0; - vnet_main_t *vnm = vnet_get_main(); - rv = vnet_flow_del(vnm, ntohl(mp->flow_index)); + vnet_main_t *vnm = vnet_get_main (); + rv = vnet_flow_del (vnm, ntohl (mp->flow_index)); REPLY_MACRO (VL_API_FLOW_DEL_REPLY); } @@ -271,8 +273,9 @@ vl_api_flow_enable_t_handler (vl_api_flow_enable_t * mp) vl_api_flow_add_reply_t *rmp; int rv = 0; - vnet_main_t *vnm = vnet_get_main(); - rv = vnet_flow_enable(vnm, ntohl(mp->flow_index), ntohl(mp->hw_if_index)); + vnet_main_t *vnm = vnet_get_main (); + rv = + vnet_flow_enable (vnm, ntohl (mp->flow_index), ntohl (mp->hw_if_index)); REPLY_MACRO (VL_API_FLOW_ENABLE_REPLY); } @@ -283,8 +286,9 @@ vl_api_flow_disable_t_handler (vl_api_flow_disable_t * mp) vl_api_flow_add_reply_t *rmp; int rv = 0; - vnet_main_t *vnm = vnet_get_main(); - rv = vnet_flow_disable(vnm, ntohl(mp->flow_index), ntohl(mp->hw_if_index)); + vnet_main_t *vnm = vnet_get_main (); + rv = + vnet_flow_disable (vnm, ntohl (mp->flow_index), ntohl (mp->hw_if_index)); REPLY_MACRO (VL_API_FLOW_DISABLE_REPLY); } -- cgit 1.2.3-korg