net: hide internal CRC defines
authorDavid Marchand <david.marchand@redhat.com>
Wed, 23 Oct 2019 13:40:01 +0000 (15:40 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:00:22 +0000 (19:00 +0200)
No need to let those (non RTE_ prefixed) defines public.
Hide them where we use them.

Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_net/rte_net_crc.c
lib/librte_net/rte_net_crc.h

index dca0830..9fd4794 100644 (file)
 #include <net_crc_neon.h>
 #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];
index 8a86f29..16e85ca 100644 (file)
 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,