summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-05-29 19:09:25 +0200
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-05-29 19:09:25 +0200
commit088daca13076803f9e6e3a91f7b76bfc2aff6a33 (patch)
tree1fc68e2b9dbef57f1de86dba6f07457d77587d0f
parente7149a6893bb4df7380ce046cc98044b069b0f2d (diff)
[HICN-209] Fixed the copy of packet with size less than 2 cache lines.
Change-Id: I05969411c2807c5e0fb434e08b216315cee8e9c1 Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
-rw-r--r--hicn-plugin/src/interest_hitcs_node.c2
-rw-r--r--hicn-plugin/src/params.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/hicn-plugin/src/interest_hitcs_node.c b/hicn-plugin/src/interest_hitcs_node.c
index af9db2863..14f512897 100644
--- a/hicn-plugin/src/interest_hitcs_node.c
+++ b/hicn-plugin/src/interest_hitcs_node.c
@@ -50,7 +50,7 @@ clone_from_cs (vlib_main_t * vm, u32 * bi0_cs, vlib_buffer_t * dest, u8 isv6)
{
clib_memcpy_fast (vlib_buffer_get_current (dest),
vlib_buffer_get_current (cs_buf),
- dest->current_length);
+ cs_buf->current_length);
clib_memcpy_fast (dest->opaque2, cs_buf->opaque2,
sizeof (cs_buf->opaque2));
diff --git a/hicn-plugin/src/params.h b/hicn-plugin/src/params.h
index 1ca9ba08b..5e9d20ab7 100644
--- a/hicn-plugin/src/params.h
+++ b/hicn-plugin/src/params.h
@@ -91,7 +91,7 @@ STATIC_ASSERT ((HICN_PARAM_PIT_ENTRY_PHOPS_MAX <= HICN_PARAM_FACES_MAX),
#define HICN_PARAM_CS_LIFETIME_MAX (24 * 3600 * 1000) //24 hours...
/* CS reserved portion for applications */
-#define HICN_PARAM_CS_RESERVED_APP 30 //%
+#define HICN_PARAM_CS_RESERVED_APP 50 //%
/* Cloning parameters */
/* ip4 */