Fix the shown crypto inflight counts which were reversed. Also improve a
couple error descriptions to tell them apart when viewed.
Type: fix
Signed-off-by: Christian Hopps <chopps@labn.net>
Change-Id: I6d4054c64aa842658cfcde8969c7aa48f6d21207
crypto_resource_t *res = vec_elt_at_index (dcm->resource, res_idx);
crypto_resource_t *res = vec_elt_at_index (dcm->resource, res_idx);
- s = format (s, "%U thr_id %3d qp %2u enc_inflight %u, dec_inflights %u\n",
+ s = format (s, "%U thr_id %3d qp %2u dec_inflight %u, enc_inflights %u\n",
format_white_space, indent, (i16) res->thread_idx,
res->qp_id, res->inflights[0], res->inflights[1]);
format_white_space, indent, (i16) res->thread_idx,
res->qp_id, res->inflights[0], res->inflights[1]);
_(DECRYPTION_FAILED, "ESP decryption failed") \
_(REPLAY, "SA replayed packet") \
_(NOT_IP, "Not IP packet (dropped)") \
_(DECRYPTION_FAILED, "ESP decryption failed") \
_(REPLAY, "SA replayed packet") \
_(NOT_IP, "Not IP packet (dropped)") \
- _(ENQ_FAIL, "Enqueue failed (buffer full)") \
+ _(ENQ_FAIL, "Enqueue decrypt failed (queue full)") \
_(DISCARD, "Not enough crypto operations, discarding frame") \
_(BAD_LEN, "Invalid ciphertext length") \
_(SESSION, "Failed to get crypto session") \
_(DISCARD, "Not enough crypto operations, discarding frame") \
_(BAD_LEN, "Invalid ciphertext length") \
_(SESSION, "Failed to get crypto session") \
#define foreach_esp_encrypt_error \
_(RX_PKTS, "ESP pkts received") \
_(SEQ_CYCLED, "Sequence number cycled") \
#define foreach_esp_encrypt_error \
_(RX_PKTS, "ESP pkts received") \
_(SEQ_CYCLED, "Sequence number cycled") \
- _(ENQ_FAIL, "Enqueue failed to crypto device") \
+ _(ENQ_FAIL, "Enqueue encrypt failed (queue full)") \
_(DISCARD, "Not enough crypto operations, discarding frame") \
_(SESSION, "Failed to get crypto session") \
_(NOSUP, "Cipher/Auth not supported")
_(DISCARD, "Not enough crypto operations, discarding frame") \
_(SESSION, "Failed to get crypto session") \
_(NOSUP, "Cipher/Auth not supported")