Re: [dpdk-dev] [PATCH v3 5/7] hash: fix rw concurrency while moving keys

2018-10-12 Thread Wang, Yipeng1
>-Original Message- >From: Honnappa Nagarahalli [mailto:honnappa.nagaraha...@arm.com] >Sent: Thursday, October 11, 2018 11:32 PM >To: Richardson, Bruce ; De Lara Guarch, Pablo > >Cc: dev@dpdk.org; Wang, Yipeng1 ; >honnappa.nagaraha...@arm.com; dharmik.thak...@arm.com; >gavin...@arm.com; n

[dpdk-dev] [PATCH v3 5/7] hash: fix rw concurrency while moving keys

2018-10-11 Thread Honnappa Nagarahalli
Reader-writer concurrency issue, caused by moving the keys to their alternative locations during key insert, is solved by introducing a global counter(tbl_chng_cnt) indicating a change in table. Signed-off-by: Honnappa Nagarahalli Reviewed-by: Gavin Hu Reviewed-by: Ola Liljedahl Reviewed-by: St