Re: [dpdk-dev] [PATCH v4 3/3] lib/lpm: use atomic store to avoid partial update

2019-07-09 Thread Ruifeng Wang (Arm Technology China)
> -Original Message- > From: Honnappa Nagarahalli > Sent: Tuesday, July 9, 2019 12:43 > To: Ruifeng Wang (Arm Technology China) ; > vladimir.medved...@intel.com; bruce.richard...@intel.com > Cc: dev@dpdk.org; Gavin Hu (Arm Technology China) ; > Honnappa Nagarahalli ; nd > ; nd > Subject

Re: [dpdk-dev] [PATCH v4 3/3] lib/lpm: use atomic store to avoid partial update

2019-07-08 Thread Honnappa Nagarahalli
> > > > > > > > Compiler could generate non-atomic stores for whole table entry updating. > > > This may cause incorrect nexthop to be returned, if the byte with > > > valid flag is updated prior to the byte with next hot is updated. > >^^

Re: [dpdk-dev] [PATCH v4 3/3] lib/lpm: use atomic store to avoid partial update

2019-07-07 Thread Ruifeng Wang (Arm Technology China)
Hi Honnappa, > -Original Message- > From: Honnappa Nagarahalli > Sent: Monday, July 8, 2019 12:57 > To: Ruifeng Wang (Arm Technology China) ; > vladimir.medved...@intel.com; bruce.richard...@intel.com > Cc: dev@dpdk.org; Gavin Hu (Arm Technology China) ; > nd ; Ruifeng Wang (Arm Technolog

Re: [dpdk-dev] [PATCH v4 3/3] lib/lpm: use atomic store to avoid partial update

2019-07-07 Thread Ruifeng Wang (Arm Technology China)
Hi Vladimir, > -Original Message- > From: Medvedkin, Vladimir > Sent: Saturday, July 6, 2019 00:53 > To: Ruifeng Wang (Arm Technology China) ; > bruce.richard...@intel.com > Cc: dev@dpdk.org; Honnappa Nagarahalli > ; Gavin Hu (Arm Technology China) > ; nd > Subject: Re: [PATCH v4 3/3] li

Re: [dpdk-dev] [PATCH v4 3/3] lib/lpm: use atomic store to avoid partial update

2019-07-07 Thread Honnappa Nagarahalli
> > Compiler could generate non-atomic stores for whole table entry updating. > This may cause incorrect nexthop to be returned, if the byte with valid flag > is > updated prior to the byte with next hot is updated. ^^^ Should be next

Re: [dpdk-dev] [PATCH v4 3/3] lib/lpm: use atomic store to avoid partial update

2019-07-05 Thread Medvedkin, Vladimir
Hi Wang, On 03/07/2019 06:44, Ruifeng Wang wrote: Compiler could generate non-atomic stores for whole table entry updating. This may cause incorrect nexthop to be returned, if the byte with valid flag is updated prior to the byte with next hot is updated. Changed to use atomic store to update w

[dpdk-dev] [PATCH v4 3/3] lib/lpm: use atomic store to avoid partial update

2019-07-02 Thread Ruifeng Wang
Compiler could generate non-atomic stores for whole table entry updating. This may cause incorrect nexthop to be returned, if the byte with valid flag is updated prior to the byte with next hot is updated. Changed to use atomic store to update whole table entry. Suggested-by: Medvedkin Vladimir