plugins: odp: delete aad field initialization 59/10759/1
authorSzymon Sliwa <szs@semihalf.com>
Tue, 20 Feb 2018 17:22:51 +0000 (18:22 +0100)
committerSzymon Sliwa <szs@semihalf.com>
Thu, 22 Feb 2018 15:13:44 +0000 (16:13 +0100)
Due to some bugs in the old odp-dpdk aad field needed to be
manually initialized to 0. That is no longer true, what's more
odp does not contain this field, thus making it impossible to compile.
Due to above mentioned reasons, delete this.

Change-Id: I5ec9278d44e49991fad741a43100da4b64823bf3
Signed-off-by: Szymon Sliwa <szs@semihalf.com>
src/plugins/odp/ipsec/esp_decrypt.c
src/plugins/odp/ipsec/esp_encrypt.c

index 442776a..8a851a7 100644 (file)
@@ -203,8 +203,6 @@ odp_crypto_esp_decrypt_node_fn (vlib_main_t * vm,
 
          crypto_op_params.session = sa_sess_data->sess;
          crypto_op_params.ctx = NULL;
-         crypto_op_params.aad.ptr = NULL;
-         crypto_op_params.aad.length = 0;
          crypto_op_params.pkt = odp_packet_from_vlib_buffer (b0);
          crypto_op_params.out_pkt = crypto_op_params.pkt;
          crypto_op_params.override_iv_ptr = sa_sess_data->iv_data;
index 1b42eff..757eef8 100644 (file)
@@ -345,8 +345,6 @@ odp_crypto_esp_encrypt_node_fn (vlib_main_t * vm,
 
              crypto_op_params.session = sa_sess_data->sess;
              crypto_op_params.ctx = NULL;
-             crypto_op_params.aad.ptr = NULL;
-             crypto_op_params.aad.length = 0;
              crypto_op_params.pkt = pkt;
              crypto_op_params.out_pkt = pkt;