dpdk-ipsec: fix show output 65/28665/2
authorChristian Hopps <chopps@labn.net>
Tue, 14 Jul 2020 13:41:43 +0000 (09:41 -0400)
committerDamjan Marion <dmarion@me.com>
Fri, 4 Sep 2020 12:12:57 +0000 (12:12 +0000)
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

src/plugins/dpdk/ipsec/cli.c
src/plugins/dpdk/ipsec/esp_decrypt.c
src/plugins/dpdk/ipsec/esp_encrypt.c

index a2edc8b..fb98d27 100644 (file)
@@ -28,7 +28,7 @@ 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 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]);
 
index dffcc83..d781710 100644 (file)
@@ -44,7 +44,7 @@ typedef enum
  _(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")      \
index 64b8624..e78cb2d 100644 (file)
@@ -45,7 +45,7 @@ typedef enum
 #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")