Skip to contentSkip to conversation

hash: fix GFNI helpers for building with -O0

PATCH In review David Marchand 2 participants 3 messages Sep 30

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hash: fix GFNI helpers for building with -O0

Similarly to commit da31ef54c865 ("hash: fix GFNI stubs export"), fix "internal" helpers used by public inline helpers by removing the incorrect __rte_internal annotation.

The issue is usually not seen as those helpers get inlined under standard compiler optimization level, but it becomes visible when building with -O0.

Fixes 4fd8c4cb0de1 ("hash: add new Toeplitz hash implementation")
---
 lib/hash/rte_thash_x86_gfni.h | 3 ---
 1 file changed, 3 deletions(-)
lib/hash/rte_thash_x86_gfni.h +0 -3
index 69973503fd..e5abdf2474 100644
@@ -13,7 +13,6 @@
  */
 
 #include <rte_bitops.h>
-#include <rte_compat.h>
 #include <rte_vect.h>
 
 #ifdef __cplusplus
@@ -29,7 +28,6 @@ extern "C" {
 #define RTE_THASH_PERM_MSK_2		0xf0f0f0f0f0f0f0f0
 #define RTE_THASH_REWIND_MSK		0x0000000000113377
 
-__rte_internal
 static inline void
 __rte_thash_xor_reduce(__m512i xor_acc, uint32_t *val_1, uint32_t *val_2)
 {
@@ -64,7 +62,6 @@ __rte_thash_xor_reduce(__m512i xor_acc, uint32_t *val_1, uint32_t *val_2)
 #endif
 }
 
-__rte_internal
 static inline __m512i
 __rte_thash_gfni(const uint64_t *mtrx, const uint8_t *tuple,
 	const uint8_t *secondary_tuple, int len)
Signature · 1 line
2.54.0
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · David Marchand

Similarly to commit da31ef54c865 ("hash: fix GFNI stubs export"), fix "internal" helpers used by public inline helpers by removing the incorrect __rte_internal annotation.

The issue is usually not seen as those helpers get inlined under standard compiler optimization level, but it becomes visible when building with -O0.

Quoted 6 lines
Fixes 4fd8c4cb0de1 ("hash: add new Toeplitz hash implementation")
---
 lib/hash/rte_thash_x86_gfni.h | 3 ---
 1 file changed, 3 deletions(-)
author Applied
#2 lore raw
Quoted 6 lines · Bruce Richardson
Quoted 4 lines · David Marchand

Similarly to commit da31ef54c865 ("hash: fix GFNI stubs export"), fix "internal" helpers used by public inline helpers by removing the incorrect __rte_internal annotation.

Quoted 8 lines
Quoted 7 lines

The issue is usually not seen as those helpers get inlined under standard compiler optimization level, but it becomes visible when building with -O0.

Fixes 4fd8c4cb0de1 ("hash: add new Toeplitz hash implementation")

Applied, thanks.

Signature · 1 line
David Marchand