From 40549b086c511c7430319632da29cd3ad779842b Mon Sep 17 00:00:00 2001 From: David Marchand Date: Wed, 23 Oct 2019 15:40:01 +0200 Subject: [PATCH] net: hide internal CRC defines No need to let those (non RTE_ prefixed) defines public. Hide them where we use them. Signed-off-by: David Marchand Reviewed-by: Ferruh Yigit --- lib/librte_net/rte_net_crc.c | 6 ++++++ lib/librte_net/rte_net_crc.h | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/librte_net/rte_net_crc.c b/lib/librte_net/rte_net_crc.c index dca0830e2c..9fd4794a9d 100644 --- a/lib/librte_net/rte_net_crc.c +++ b/lib/librte_net/rte_net_crc.c @@ -22,6 +22,12 @@ #include #endif +/** CRC polynomials */ +#define CRC32_ETH_POLYNOMIAL 0x04c11db7UL +#define CRC16_CCITT_POLYNOMIAL 0x1021U + +#define CRC_LUT_SIZE 256 + /* crc tables */ static uint32_t crc32_eth_lut[CRC_LUT_SIZE]; static uint32_t crc16_ccitt_lut[CRC_LUT_SIZE]; diff --git a/lib/librte_net/rte_net_crc.h b/lib/librte_net/rte_net_crc.h index 8a86f2978c..16e85ca970 100644 --- a/lib/librte_net/rte_net_crc.h +++ b/lib/librte_net/rte_net_crc.h @@ -11,12 +11,6 @@ extern "C" { #endif -/** CRC polynomials */ -#define CRC32_ETH_POLYNOMIAL 0x04c11db7UL -#define CRC16_CCITT_POLYNOMIAL 0x1021U - -#define CRC_LUT_SIZE 256 - /** CRC types */ enum rte_net_crc_type { RTE_NET_CRC16_CCITT = 0, -- 2.20.1