net/mlx5e: Rely on rcu instead of rtnl lock when getting upper dev
authorVlad Buslov <vladbu@mellanox.com>
Tue, 12 Mar 2019 09:40:12 +0000 (11:40 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 29 Jul 2019 23:40:26 +0000 (16:40 -0700)
commitfa833bd52b7b58d8311bf6a0be29a32e62a1f289
tree4e1949cb054c810c63890c630e7110d8bd80043a
parent0e18134f4f9f1e5c75b63b84d250b116c76d5116
net/mlx5e: Rely on rcu instead of rtnl lock when getting upper dev

Function netdev_master_upper_dev_get() generates warning if caller doesn't
hold rtnl lock. Modify rules update path to use rcu version of that
function.

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/tc_tun.c
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c