[dpdk-dev] [memnic PATCH v2] pmd: fix race condition

2014-04-11 Thread Thomas Monjalon
2014-04-11 16:41, Olivier MATZ: > On Thursday, April 03, 2014 06:35:06 AM Hiroshi Shimamoto wrote: > > From: Hiroshi Shimamoto > > > > There is a race condition, on transmit to host. > > > > Guest PMD Host > > Thread-A Thread-B vSwitch > > > >|idx=0 |idx=0

[dpdk-dev] [memnic PATCH v2] pmd: fix race condition

2014-04-11 Thread Olivier MATZ
On Thursday, April 03, 2014 06:35:06 AM Hiroshi Shimamoto wrote: > From: Hiroshi Shimamoto > > There is a race condition, on transmit to host. > > Guest PMD Host > Thread-A Thread-B vSwitch > >|idx=0 |idx=0 |p[0] st!=2 >|cmpxchg || >

[dpdk-dev] [memnic PATCH v2] pmd: fix race condition

2014-04-03 Thread Hiroshi Shimamoto
From: Hiroshi Shimamoto There is a race condition, on transmit to host. Guest PMD Host Thread-A Thread-B vSwitch |idx=0 |idx=0 |p[0] st!=2 |cmpxchg || |p[0] st->1 || |idx=1 || |fill data |