]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Read neigh parameters with proper locking
authorHadar Hen Zion <hadarh@mellanox.com>
Thu, 2 Feb 2017 14:14:21 +0000 (16:14 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 30 Apr 2017 13:03:10 +0000 (16:03 +0300)
commit82494518849cf7d13d0e49c7af3e91f5e8872417
treeb66701bf6c4aea022d424c6a48c6bac9efc950f4
parentc874360c38d82d3e3e9fa7acc317cd50a9064efb
net/mlx5e: Read neigh parameters with proper locking

The nud_state and hardware address fields are protected by the neighbour
lock, we should acquire it before accessing those parameters.

Use this lock to avoid inconsistency between the neighbour validity state
and it's hardware address.

Signed-off-by: Hadar Hen Zion <hadarh@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c