numam-dpdk/lib/net/net_crc.h

46 lines
823 B
C
Raw Normal View History

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2020 Intel Corporation
*/
#ifndef _NET_CRC_H_
#define _NET_CRC_H_
/*
* Different implementations of CRC
*/
/* SSE4.2 */
void
rte_net_crc_sse42_init(void);
uint32_t
rte_crc16_ccitt_sse42_handler(const uint8_t *data, uint32_t data_len);
uint32_t
rte_crc32_eth_sse42_handler(const uint8_t *data, uint32_t data_len);
/* AVX512 */
void
rte_net_crc_avx512_init(void);
uint32_t
rte_crc16_ccitt_avx512_handler(const uint8_t *data, uint32_t data_len);
uint32_t
rte_crc32_eth_avx512_handler(const uint8_t *data, uint32_t data_len);
/* NEON */
void
rte_net_crc_neon_init(void);
uint32_t
rte_crc16_ccitt_neon_handler(const uint8_t *data, uint32_t data_len);
uint32_t
rte_crc32_eth_neon_handler(const uint8_t *data, uint32_t data_len);
#endif /* _NET_CRC_H_ */