net/mlx5e: Extend neigh hash entry with rcu
authorVlad Buslov <vladbu@mellanox.com>
Fri, 8 Jun 2018 08:49:28 +0000 (11:49 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 21 Aug 2019 22:55:16 +0000 (15:55 -0700)
commit1216ce9d4a740bed88393177174fef275069a560
tree0c3d459a2195e1d54bb33fb059f8ab7ee38472da
parent61081f9c09df33fe0123d234e840e3b4d3c17269
net/mlx5e: Extend neigh hash entry with rcu

To remove dependency on rtnl lock and to allow unlocked iteration over list
of neigh hash entries, extend nhe with rcu. Change operations on neigh list
to their rcu counterparts and free neigh hash entry with rcu timeout.

Introduce mlx5e_get_next_nhe() helper that is used to iterate over rcu
neigh list with reference to nhe taken.

Signed-off-by: Vlad Buslov <vladbu@mellanox.com>
Reviewed-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.h