aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/flow/flow_api.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-10-20 14:59:43 -0700
committerDave Barach <openvpp@barachs.net>2020-10-21 10:56:34 +0000
commitb040f98a88954ccf2e63fd7b2676865a2dbe0078 (patch)
tree8dd81604626dbb5cda19540a439e491a197e5491 /src/vnet/flow/flow_api.c
parent8aa18562152b0d135a72d27e3dd72a831b68d0ce (diff)
misc: minimize dependencies on udp.h
Type: improvement Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Id13f33843b230a1d169560742c4f7b2dc17d8718
Diffstat (limited to 'src/vnet/flow/flow_api.c')
-rw-r--r--src/vnet/flow/flow_api.c16
1 files changed, 10 insertions, 6 deletions
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 <vnet/api_errno.h>
#include <vnet/flow/flow.h>
#include <vnet/fib/fib_table.h>
+#include <vnet/udp/udp_local.h>
#include <vnet/tunnel/tunnel_types_api.h>
#include <vnet/ip/ip_types_api.h>
#include <vnet/vnet_msg_enum.h>
@@ -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);
}