app/test: remove unnecessary hexdump
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 15 Jun 2016 14:11:19 +0000 (15:11 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 20 Jun 2016 15:44:28 +0000 (17:44 +0200)
Fixes: 202d375c60bc1 ("app/test: add cryptodev unit and performance tests")

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
app/test/test_cryptodev.c

index 5674534..a5b34e2 100644 (file)
@@ -112,21 +112,9 @@ setup_test_string(struct rte_mempool *mpool,
        return m;
 }
 
-#if HEX_DUMP
-static void
-hexdump_mbuf_data(FILE *f, const char *title, struct rte_mbuf *m)
-{
-       rte_hexdump(f, title, rte_pktmbuf_mtod(m, const void *), m->data_len);
-}
-#endif
-
 static struct rte_crypto_op *
 process_crypto_request(uint8_t dev_id, struct rte_crypto_op *op)
 {
-#if HEX_DUMP
-       hexdump_mbuf_data(stdout, "Enqueued Packet", ibuf);
-#endif
-
        if (rte_cryptodev_enqueue_burst(dev_id, 0, &op, 1) != 1) {
                printf("Error sending packet for encryption");
                return NULL;
@@ -137,11 +125,6 @@ process_crypto_request(uint8_t dev_id, struct rte_crypto_op *op)
        while (rte_cryptodev_dequeue_burst(dev_id, 0, &op, 1) == 0)
                rte_pause();
 
-#if HEX_DUMP
-       if (obuf)
-               hexdump_mbuf_data(stdout, "Dequeued Packet", obuf);
-#endif
-
        return op;
 }