hash: fix GFNI helpers for building with -O0
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.
--- lib/hash/rte_thash_x86_gfni.h | 3 --- 1 file changed, 3 deletions(-)
lib/hash/rte_thash_x86_gfni.h +0 -3
@@ -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
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_internalannotation.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")Signed-off-by David Marchand <[email protected]>--- lib/hash/rte_thash_x86_gfni.h | 3 --- 1 file changed, 3 deletions(-)
David Marchand
AppliedQuoted 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_internalannotation.
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")Signed-off-by David Marchand <[email protected]>Acked-by Bruce Richardson <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand