From: David Marchand Date: Wed, 23 Oct 2019 13:40:01 +0000 (+0200) Subject: net: hide internal CRC defines X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=40549b086c511c7430319632da29cd3ad779842b;p=dpdk.git 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 --- 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,