1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright 2024-2025 Huawei Technologies Co.,Ltd. All rights reserved. 3 * Copyright 2024-2025 Linaro ltd. 4 */ 5 6 #ifndef _UADK_COMPRESS_PMD_PRIVATE_H_ 7 #define _UADK_COMPRESS_PMD_PRIVATE_H_ 8 9 struct uadk_compress_priv { 10 bool env_init; 11 }; 12 13 struct __rte_cache_aligned uadk_compress_qp { 14 /* Ring for placing process packets */ 15 struct rte_ring *processed_pkts; 16 /* Queue pair statistics */ 17 struct rte_compressdev_stats qp_stats; 18 /* Queue Pair Identifier */ 19 uint16_t id; 20 /* Unique Queue Pair Name */ 21 char name[RTE_COMPRESSDEV_NAME_MAX_LEN]; 22 }; 23 24 struct uadk_compress_xform { 25 handle_t handle; 26 enum rte_comp_xform_type type; 27 }; 28 29 extern int uadk_compress_logtype; 30 #define RTE_LOGTYPE_UADK_COMPRESS uadk_compress_logtype 31 32 #define UADK_LOG(level, ...) \ 33 RTE_LOG_LINE_PREFIX(level, UADK_COMPRESS, "%s() line %u: ", \ 34 __func__ RTE_LOG_COMMA __LINE__, __VA_ARGS__) 35 36 #endif /* _UADK_COMPRESS_PMD_PRIVATE_H_ */ 37