[dpdk-dev] [memnic PATCH] linux: fix race condition

2014-04-11 Thread Olivier MATZ
On Thursday, April 03, 2014 07:35:50 AM Hiroshi Shimamoto wrote: > From: Hiroshi Shimamoto > > Same as PMD, there is a race condition between host and guest > in the guest MEMNIC kernel driver. > > Guest PMD Host > Thread-A Thread-B vSwitch > >|idx=0 |idx=0

[dpdk-dev] [memnic PATCH] linux: fix race condition

2014-04-11 Thread Thomas Monjalon
2014-04-11 11:41, Olivier MATZ: > On Thursday, April 03, 2014 07:35:50 AM Hiroshi Shimamoto wrote: > > From: Hiroshi Shimamoto > > > > Same as PMD, there is a race condition between host and guest > > in the guest MEMNIC kernel driver. > > > > Guest PMD Host > > Thread-A Thre

[dpdk-dev] [memnic PATCH] linux: fix race condition

2014-04-03 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto Same as PMD, there is a race condition between host and guest in the guest MEMNIC kernel driver. Guest PMD Host Thread-A Thread-B vSwitch |idx=0 |idx=0 |p[0] st!=2 |cmpxchg || |p[0] st->1 || |idx