diff options
author | Sergio Gonzalez Monroy <sgmonroy@gmail.com> | 2019-05-06 22:44:14 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-05-17 12:43:49 +0000 |
commit | d8a34a57b12200000bb42d1c55f1a99a0a473f4b (patch) | |
tree | b4fae725b9284aa7e05627bad7ae0da644ccfcb7 /src/plugins/dpdk/ipsec/cli.c | |
parent | fe52dea08f3ebf3c95a33266c7fa15da33f4e9d0 (diff) |
dpdk-ipsec: fix encrypt/decrypt single queue
When the same worker thread processes packet for encrypt and decrypt,
ie. single worker with bi-directional traffic, given that the queue is
shared results in packets to be decrypted being dropped as the encrypt
always happens first for each main loop.
With this change, each crypto device queue is logically split into two
queues, each half the real size, avoiding the described problem.
Change-Id: Ifd3f15e316c92fbd6ca05802456b10a7f73f85da
Signed-off-by: Sergio Gonzalez Monroy <sgmonroy@gmail.com>
Diffstat (limited to 'src/plugins/dpdk/ipsec/cli.c')
-rw-r--r-- | src/plugins/dpdk/ipsec/cli.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/dpdk/ipsec/cli.c b/src/plugins/dpdk/ipsec/cli.c index 01ef985af84..a2edc8b96c0 100644 --- a/src/plugins/dpdk/ipsec/cli.c +++ b/src/plugins/dpdk/ipsec/cli.c @@ -27,10 +27,10 @@ format_crypto_resource (u8 * s, va_list * args) crypto_resource_t *res = vec_elt_at_index (dcm->resource, res_idx); - s = - format (s, "%U thr_id %3d qp %2u inflight %u\n", - format_white_space, indent, (i16) res->thread_idx, - res->qp_id, res->inflights); + + s = format (s, "%U thr_id %3d qp %2u enc_inflight %u, dec_inflights %u\n", + format_white_space, indent, (i16) res->thread_idx, + res->qp_id, res->inflights[0], res->inflights[1]); return s; } |