diff options
author | Damjan Marion <damarion@cisco.com> | 2016-11-03 20:16:04 +0100 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2016-11-03 22:16:15 +0000 |
commit | 05ab8cbdd410f32766d184ad87e5f66a2d2426fe (patch) | |
tree | e9cf1b65e9efed12e3e1597de55c85901c645604 /vnet/vnet/lawful-intercept/node.c | |
parent | bcc889cd0892a4dba9a06fc3c0ba49356c7220a4 (diff) |
vlib: add vlib_buffer_copy function
It works with and without DPDK so it allws us to enable
lawful-intercept code in vpp_lite images.
Change-Id: I08f234cbc652c3ff47a6123a43b9e7f8bdcd5534
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/lawful-intercept/node.c')
-rw-r--r-- | vnet/vnet/lawful-intercept/node.c | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/vnet/vnet/lawful-intercept/node.c b/vnet/vnet/lawful-intercept/node.c index 8701c323358..ea0cd8efcdd 100644 --- a/vnet/vnet/lawful-intercept/node.c +++ b/vnet/vnet/lawful-intercept/node.c @@ -17,7 +17,6 @@ #include <vnet/vnet.h> #include <vppinfra/error.h> -#if DPDK==1 #include <vnet/lawful-intercept/lawful_intercept.h> #include <vppinfra/error.h> @@ -199,7 +198,7 @@ li_hit_node_fn (vlib_main_t * vm, if (PREDICT_TRUE(to_int_next != 0)) { /* Make an intercept copy */ - c0 = vlib_dpdk_clone_buffer (vm, b0); + c0 = vlib_buffer_copy (vm, b0); vlib_buffer_advance(c0, -sizeof(*iu0)); @@ -274,31 +273,3 @@ VLIB_REGISTER_NODE (li_hit_node) = { VLIB_NODE_FUNCTION_MULTIARCH (li_hit_node, li_hit_node_fn) -#else -#include <vlib/vlib.h> - -static uword -li_hit_node_fn (vlib_main_t * vm, - vlib_node_runtime_t * node, - vlib_frame_t * frame) -{ - clib_warning ("LI not implemented (no DPDK)"); - return 0; -} - -VLIB_REGISTER_NODE (li_hit_node) = { - .vector_size = sizeof (u32), - .function = li_hit_node_fn, - .name = "li-hit", -}; - -static clib_error_t * -li_init (vlib_main_t * vm) -{ - return 0; -} - -VLIB_INIT_FUNCTION(li_init); - - -#endif /* DPDK */ |