提交 01a14098 编写于 作者: M Matthew Finlay 提交者: David S. Miller

net/mlx5e: Call vxlan_get_rx_port() with rtnl lock

Hold the rtnl lock when calling vxlan_get_rx_port().

Fixes: b7aade15 ("vxlan: break dependency with netdev drivers")
Signed-off-by: NMatthew Finlay <matt@mellanox.com>
Reported-by: NAlexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4b2523c1
......@@ -2938,8 +2938,11 @@ static void *mlx5e_create_netdev(struct mlx5_core_dev *mdev)
goto err_tc_cleanup;
}
if (mlx5e_vxlan_allowed(mdev))
if (mlx5e_vxlan_allowed(mdev)) {
rtnl_lock();
vxlan_get_rx_port(netdev);
rtnl_unlock();
}
mlx5e_enable_async_events(priv);
schedule_work(&priv->set_rx_mode_work);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册