net/hns3: fix offload flag for RSS hash
[dpdk.git] / drivers / crypto / null / null_crypto_pmd_private.h
index 0fd1336..89c4345 100644 (file)
@@ -8,31 +8,17 @@
 #define CRYPTODEV_NAME_NULL_PMD                crypto_null
 /**< Null crypto PMD device name */
 
-#define NULL_CRYPTO_LOG_ERR(fmt, args...) \
-       RTE_LOG(ERR, CRYPTODEV, "[%s] %s() line %u: " fmt "\n",  \
-                       RTE_STR(CRYPTODEV_NAME_NULL_PMD), \
-                       __func__, __LINE__, ## args)
+extern int null_logtype_driver;
 
-#ifdef RTE_LIBRTE_NULL_CRYPTO_DEBUG
-#define NULL_CRYPTO_LOG_INFO(fmt, args...) \
-       RTE_LOG(INFO, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
-                       RTE_STR(CRYPTODEV_NAME_NULL_PMD), \
-                       __func__, __LINE__, ## args)
-
-#define NULL_CRYPTO_LOG_DBG(fmt, args...) \
-       RTE_LOG(DEBUG, CRYPTODEV, "[%s] %s() line %u: " fmt "\n", \
-                       RTE_STR(CRYPTODEV_NAME_NULL_PMD), \
-                       __func__, __LINE__, ## args)
-#else
-#define NULL_CRYPTO_LOG_INFO(fmt, args...)
-#define NULL_CRYPTO_LOG_DBG(fmt, args...)
-#endif
+#define NULL_LOG(level, fmt, ...)  \
+       rte_log(RTE_LOG_ ## level, null_logtype_driver,  \
+                       "%s() line %u: "fmt "\n", __func__, __LINE__,  \
+                                       ## __VA_ARGS__)
 
 
 /** private data structure for each NULL crypto device */
 struct null_crypto_private {
        unsigned max_nb_qpairs;         /**< Max number of queue pairs */
-       unsigned max_nb_sessions;       /**< Max number of sessions */
 };
 
 /** NULL crypto queue pair */
@@ -45,6 +31,8 @@ struct null_crypto_qp {
        /**< Ring for placing process packets */
        struct rte_mempool *sess_mp;
        /**< Session Mempool */
+       struct rte_mempool *sess_mp_priv;
+       /**< Session Mempool */
        struct rte_cryptodev_stats qp_stats;
        /**< Queue pair statistics */
 } __rte_cache_aligned;