]> git.ipfire.org Git - people/arne_f/kernel.git/commit
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:36:45 +0000 (08:36 +0200)
commit9a739f1ad0b12f73afc176b2788c6d0f4e9cc739
tree604bfdcfbecc3f1f7d1f9e2df9f73e526d1353c7
parent8e302e8e10b05165ed21273539a1e6a83ab93e9e
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