summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-11-20 09:06:25 -0800
committerDamjan Marion <dmarion@me.com>2018-11-20 20:10:56 +0000
commit3553abaec54c2784bc6fdccc890411d586c3997e (patch)
tree12c6d27b7ec806c2ef9ab38f210d9f01252b833e
parent45cd3a3e2ead7eb93e4419b43d2cbc797cda2a20 (diff)
IPSEC: remove duplicate memcy
Change-Id: If91257fa23ba74c09e5c3b5528eb2fd4c4b36b6a Signed-off-by: Neale Ranns <nranns@cisco.com>
-rw-r--r--src/vnet/ipsec/ipsec.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/vnet/ipsec/ipsec.c b/src/vnet/ipsec/ipsec.c
index 8ebc57956bb..bb62560cccf 100644
--- a/src/vnet/ipsec/ipsec.c
+++ b/src/vnet/ipsec/ipsec.c
@@ -195,14 +195,12 @@ ipsec_add_del_policy (vlib_main_t * vm, ipsec_policy_t * policy, int is_add)
if (policy->is_ipv6)
{
vec_add1 (spd->ipv6_outbound_policies, policy_index);
- clib_memcpy (vp, policy, sizeof (ipsec_policy_t));
vec_sort_with_function (spd->ipv6_outbound_policies,
ipsec_spd_entry_sort);
}
else
{
vec_add1 (spd->ipv4_outbound_policies, policy_index);
- clib_memcpy (vp, policy, sizeof (ipsec_policy_t));
vec_sort_with_function (spd->ipv4_outbound_policies,
ipsec_spd_entry_sort);
}
@@ -215,7 +213,6 @@ ipsec_add_del_policy (vlib_main_t * vm, ipsec_policy_t * policy, int is_add)
{
vec_add1 (spd->ipv6_inbound_protect_policy_indices,
policy_index);
- clib_memcpy (vp, policy, sizeof (ipsec_policy_t));
vec_sort_with_function
(spd->ipv6_inbound_protect_policy_indices,
ipsec_spd_entry_sort);
@@ -225,7 +222,6 @@ ipsec_add_del_policy (vlib_main_t * vm, ipsec_policy_t * policy, int is_add)
vec_add1
(spd->ipv6_inbound_policy_discard_and_bypass_indices,
policy_index);
- clib_memcpy (vp, policy, sizeof (ipsec_policy_t));
vec_sort_with_function
(spd->ipv6_inbound_policy_discard_and_bypass_indices,
ipsec_spd_entry_sort);
@@ -237,7 +233,6 @@ ipsec_add_del_policy (vlib_main_t * vm, ipsec_policy_t * policy, int is_add)
{
vec_add1 (spd->ipv4_inbound_protect_policy_indices,
policy_index);
- clib_memcpy (vp, policy, sizeof (ipsec_policy_t));
vec_sort_with_function
(spd->ipv4_inbound_protect_policy_indices,
ipsec_spd_entry_sort);
@@ -247,7 +242,6 @@ ipsec_add_del_policy (vlib_main_t * vm, ipsec_policy_t * policy, int is_add)
vec_add1
(spd->ipv4_inbound_policy_discard_and_bypass_indices,
policy_index);
- clib_memcpy (vp, policy, sizeof (ipsec_policy_t));
vec_sort_with_function
(spd->ipv4_inbound_policy_discard_and_bypass_indices,
ipsec_spd_entry_sort);