diff options
author | Kingwel Xie <kingwel.xie@ericsson.com> | 2018-09-26 05:07:09 -0400 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-26 15:50:57 +0000 |
commit | fc91a17600cb0ba1ef5074338eb30875630940bf (patch) | |
tree | a8322f5a53a6c45b9d4027f96e3a5a02d884b52d | |
parent | a33db2528485ac39e8987bec7b138dbdad21dc5a (diff) |
forget to assign spd_index to config
Change-Id: I35dcb987edf11097f34a633ac36d87cecd12088f
Signed-off-by: Kingwel Xie <kingwel.xie@ericsson.com>
-rw-r--r-- | src/vnet/ipsec/ipsec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ipsec/ipsec.c b/src/vnet/ipsec/ipsec.c index d15bfec1b9e..c882a628602 100644 --- a/src/vnet/ipsec/ipsec.c +++ b/src/vnet/ipsec/ipsec.c @@ -78,6 +78,8 @@ ipsec_set_interface_spd (vlib_main_t * vm, u32 sw_if_index, u32 spd_id, vnet_feature_enable_disable ("ip6-output", "ipsec-output-ip6", sw_if_index, is_add, 0, 0); + config.spd_index = spd_index; + /* enable IPsec on RX */ vnet_feature_enable_disable ("ip4-unicast", "ipsec-input-ip4", sw_if_index, is_add, &config, sizeof (config)); |