Re: [PATCH net-next] rocker: fix neigh tbl index increment race

2015-06-15 Thread David Miller
From: sfel...@gmail.com Date: Fri, 12 Jun 2015 21:24:40 -0700 > From: Scott Feldman > > rocker->neigh_tbl_next_index is used to generate unique indices for neigh > entries programmed into the device. The way new indices were generated was > racy with the new prepare-commit transaction model. A

Re: [PATCH net-next] rocker: fix neigh tbl index increment race

2015-06-14 Thread Simon Horman
On Fri, Jun 12, 2015 at 09:24:40PM -0700, sfel...@gmail.com wrote: > From: Scott Feldman > > rocker->neigh_tbl_next_index is used to generate unique indices for neigh > entries programmed into the device. The way new indices were generated was > racy with the new prepare-commit transaction model

[PATCH net-next] rocker: fix neigh tbl index increment race

2015-06-12 Thread sfeldma
From: Scott Feldman rocker->neigh_tbl_next_index is used to generate unique indices for neigh entries programmed into the device. The way new indices were generated was racy with the new prepare-commit transaction model. A simple fix here removes the race. The race was with two processes getti