net/mlx5e: Add a lock on tir list
authorYuval Avnery <yuvalav@mellanox.com>
Mon, 11 Mar 2019 04:18:24 +0000 (06:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2019 06:37:48 +0000 (08:37 +0200)
commitb5ba76a58b09c09ed7efc97de18f93d28c04ee4e
tree1243b5437dfd1d73f60101f4e7b5debd40370378
parent7143c8997ae84bbed8d8698fd317d537b5c3e23d
net/mlx5e: Add a lock on tir list

[ Upstream commit 80a2a9026b24c6bd34b8d58256973e22270bedec ]

Refresh tirs is looping over a global list of tirs while netdevs are
adding and removing tirs from that list. That is why a lock is
required.

Fixes: 724b2aa15126 ("net/mlx5e: TIRs management refactoring")
Signed-off-by: Yuval Avnery <yuvalav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx5/core/en_common.c
include/linux/mlx5/driver.h