[v2,4/4] net: hide internal CRC defines
Checks
Commit Message
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>
---
lib/librte_net/rte_net_crc.c | 6 ++++++
lib/librte_net/rte_net_crc.h | 6 ------
2 files changed, 6 insertions(+), 6 deletions(-)
@@ -22,6 +22,12 @@
#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];
@@ -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,