net/mlx5e: Add a lock on tir list
authorYuval Avnery <yuvalav@mellanox.com>
Mon, 11 Mar 2019 04:18:24 +0000 (06:18 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 29 Mar 2019 19:24:41 +0000 (12:24 -0700)
commit80a2a9026b24c6bd34b8d58256973e22270bedec
tree33b811dfa8458cbb24019c60cd9df3805e29fa1c
parent8e949363f017e2011464812a714fb29710fb95b4
net/mlx5e: Add a lock on tir list

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>
drivers/net/ethernet/mellanox/mlx5/core/en_common.c
include/linux/mlx5/driver.h