[PATCH] hash: add riscv vector support for 16-byte key comparison

Stephen Hemminger stephen at networkplumber.org
Thu Feb 26 19:32:13 CET 2026


On Thu, 26 Feb 2026 14:49:38 +0800
P1erreCashon <2022302111412 at whu.edu.cn> wrote:

> +/* Functions to compare multiple of 16 byte keys (up to 128 bytes) */
> +static inline int
> +rte_hash_k16_cmp_eq(const void *key1, const void *key2, size_t key_len __rte_unused)
> +{
> +	const uint8_t *p1 = (const uint8_t *)key1;
> +	const uint8_t *p2 = (const uint8_t *)key2;

Casts of void * pointers are unnecessary in in C (only in C++)


More information about the dev mailing list