test/event_crypto: fix event crypto metadata write
authorShijith Thotton <sthotton@marvell.com>
Mon, 27 Sep 2021 15:29:13 +0000 (20:59 +0530)
committerAkhil Goyal <gakhil@marvell.com>
Fri, 8 Oct 2021 19:31:07 +0000 (21:31 +0200)
commit67c8baecaee2ef312330102544b1f1e892a95502
tree2f62a397a4f6ecc6611e137a4a42203d1ae60f63
parentdd451ad1520fd79c2c892c84c368e7b278168a9e
test/event_crypto: fix event crypto metadata write

Using memcpy to update event crypto metadata fields (request/response)
will result in one overwriting the other. To avoid this, fields of each
structure should be updated one by one.

Fixes: 3c2c535ecfc0 ("test: add event crypto adapter auto-test")
Cc: stable@dpdk.org
Signed-off-by: Shijith Thotton <sthotton@marvell.com>
Acked-by: Abhinandan Gujjar <abhinandan.gujjar@intel.com>
app/test/test_event_crypto_adapter.c