diff options
author | Cian Ferriter <cian.ferriter@intel.com> | 2022-05-17 10:08:15 +0000 |
---|---|---|
committer | Ilya Maximets <i.maximets@ovn.org> | 2022-05-30 23:12:51 +0200 |
commit | 66c85fae3a9655625c30dafafbd2cb3c0c89eb03 (patch) | |
tree | 9d45655fb6b742a86f64406b3b7c5f627162ad89 /lib | |
parent | 90cadf170fdf3110fb23705f86e810959105d9bc (diff) | |
download | openvswitch-66c85fae3a9655625c30dafafbd2cb3c0c89eb03.tar.gz |
dpif-netdev-lookup: Fix GCC 5 warning.
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: 47a2a8f4138e ("dpif-netdev/dpcls-avx512: Enable 16 block processing.")
Signed-off-by: Cian Ferriter <cian.ferriter@intel.com>
Acked-by: Sunil Pai G <sunil.pai.g@intel.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dpif-netdev-lookup-avx512-gather.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dpif-netdev-lookup-avx512-gather.c b/lib/dpif-netdev-lookup-avx512-gather.c index 7bc1e9e9a..b396772bc 100644 --- a/lib/dpif-netdev-lookup-avx512-gather.c +++ b/lib/dpif-netdev-lookup-avx512-gather.c @@ -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, |