examples/vhost_scsi: introduce a new sample app
[dpdk.git] / drivers / crypto / snow3g / rte_snow3g_pmd_private.h
index b383cbc..fba3cb8 100644 (file)
@@ -1,7 +1,7 @@
 /*-
  *   BSD LICENSE
  *
- *   Copyright(c) 2016 Intel Corporation. All rights reserved.
+ *   Copyright(c) 2016-2017 Intel Corporation. All rights reserved.
  *
  *   Redistribution and use in source and binary forms, with or without
  *   modification, are permitted provided that the following conditions
 
 #include <sso_snow3g.h>
 
+#define CRYPTODEV_NAME_SNOW3G_PMD      crypto_snow3g
+/**< SNOW 3G PMD device name */
+
 #define SNOW3G_LOG_ERR(fmt, args...) \
        RTE_LOG(ERR, CRYPTODEV, "[%s] %s() line %u: " fmt "\n",  \
-                       CRYPTODEV_NAME_SNOW3G_PMD, \
+                       RTE_STR(CRYPTODEV_NAME_SNOW3G_PMD), \
                        __func__, __LINE__, ## args)
 
 #ifdef RTE_LIBRTE_SNOW3G_DEBUG
 #define SNOW3G_LOG_INFO(fmt, args...) \
        RTE_LOG(INFO, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
-                       CRYPTODEV_NAME_SNOW3G_PMD, \
+                       RTE_STR(CRYPTODEV_NAME_SNOW3G_PMD), \
                        __func__, __LINE__, ## args)
 
 #define SNOW3G_LOG_DBG(fmt, args...) \
        RTE_LOG(DEBUG, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
-                       CRYPTODEV_NAME_SNOW3G_PMD, \
+                       RTE_STR(CRYPTODEV_NAME_SNOW3G_PMD), \
                        __func__, __LINE__, ## args)
 #else
 #define SNOW3G_LOG_INFO(fmt, args...)
@@ -91,6 +94,8 @@ struct snow3g_session {
        enum rte_crypto_auth_operation auth_op;
        sso_snow3g_key_schedule_t pKeySched_cipher;
        sso_snow3g_key_schedule_t pKeySched_hash;
+       uint16_t cipher_iv_offset;
+       uint16_t auth_iv_offset;
 } __rte_cache_aligned;