Skip to content

Commit

Permalink
dpif-netdev-lookup: Fix GCC 5 warning.
Browse files Browse the repository at this point in the history
GCC 5 gave an incompatible pointer type warning for pkt_blocks when it's
passed to _mm512_mask_i64gather_epi64().

Follow the same pattern used for tbl_blocks where the 'const uint64_t *'
is cast to a 'const void *' when passed in to avx512_blocks_gather().

Fixes: 47a2a8f ("dpif-netdev/dpcls-avx512: Enable 16 block processing.")
Signed-off-by: Cian Ferriter <[email protected]>
Acked-by: Sunil Pai G <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
cferriter authored and igsilya committed May 30, 2022
1 parent 90cadf1 commit 66c85fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dpif-netdev-lookup-avx512-gather.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ netdev_rule_matches_key(const struct dpcls_rule *rule,
static inline ALWAYS_INLINE __m512i
avx512_blocks_gather(__m512i v_u0,
__m512i v_u1,
const uint64_t *pkt_blocks,
const void *pkt_blocks,
const void *tbl_blocks,
const void *tbl_mf_masks,
__mmask64 u1_bcast_msk,
Expand Down

0 comments on commit 66c85fa

Please sign in to comment.