hash: fix TSX aborts with newer gcc
authorYipeng Wang <yipeng1.wang@intel.com>
Mon, 12 Nov 2018 10:47:16 +0000 (10:47 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Nov 2018 00:02:07 +0000 (01:02 +0100)
commit606bd11736a210aa79fe5da4ea0cb3a9cbcde4a0
tree67b779a237890a1776a2a20617d6eb896e03672a
parent45e5f49e87fba07c1e63f1630a3c76fc89a198a4
hash: fix TSX aborts with newer gcc

gcc 7 and 8 with O3 will generate vzeroupper from rte_memcpy
into TSX region which may abort the TSX transaction.

This fix changes rte_memcpy to memcpy which will not insert
extra vzeroupper into the library.

Fixes: f2e3001b53ec ("hash: support read/write concurrency")
Cc: stable@dpdk.org
Signed-off-by: Yipeng Wang <yipeng1.wang@intel.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
lib/librte_hash/rte_cmp_x86.h
lib/librte_hash/rte_cuckoo_hash.c