* Copyright(c) 2015-2017 Intel Corporation
*/
+#ifndef RTE_EXEC_ENV_WINDOWS
+
#include <rte_common.h>
#include <rte_hexdump.h>
#include <rte_mbuf.h>
#include <rte_crypto.h>
#include <rte_cryptodev.h>
-#include <rte_cryptodev_pmd.h>
#include "test.h"
#include "test_cryptodev.h"
}
memset(obuf->buf_addr, dst_pattern, obuf->buf_len);
- buf_p = rte_pktmbuf_append(obuf, buf_len + pad_len);
+ if (t->op_mask & BLOCKCIPHER_TEST_OP_DIGEST_ENCRYPTED)
+ buf_p = rte_pktmbuf_append(obuf, buf_len + pad_len);
+ else
+ buf_p = rte_pktmbuf_append(obuf, buf_len);
if (!buf_p) {
snprintf(test_msg, BLOCKCIPHER_TEST_MSG_LEN, "line %u "
"FAILED: %s", __LINE__,
rte_cryptodev_sym_session_clear(dev_id, sess);
rte_cryptodev_sym_session_free(sess);
}
- if (cipher_xform)
- rte_free(cipher_xform);
- if (auth_xform)
- rte_free(auth_xform);
+ rte_free(cipher_xform);
+ rte_free(auth_xform);
}
if (op)
rte_crypto_op_free(op);
- if (obuf)
- rte_pktmbuf_free(obuf);
+ rte_pktmbuf_free(obuf);
- if (ibuf)
- rte_pktmbuf_free(ibuf);
+ rte_pktmbuf_free(ibuf);
return status;
}
ts_setup = authonly_setup;
break;
default:
- break;
+ return NULL;
}
ts = calloc(1, sizeof(struct unit_test_suite) +
{
free(ts);
}
+
+#endif /* !RTE_EXEC_ENV_WINDOWS */