Skip to content

Commit 7c3a0a0

Browse files
elic307idavem330
authored andcommitted
net/{mlx5|nfp|bnxt}: Remove unnecessary RTNL lock assert
Remove the assert from the callback priv lookup function since it does not require RTNL lock and is already protected by flow_indr_block_lock. This will avoid warnings from being emitted to dmesg if the driver registers its callback after an ingress qdisc was created for a netdevice. The warnings started after the following patch was merged: commit 74fc4f8 ("net: Fix offloading indirect devices dependency on qdisc order creation") Signed-off-by: Eli Cohen <elic@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 84fb7df commit 7c3a0a0

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,9 +1884,6 @@ bnxt_tc_indr_block_cb_lookup(struct bnxt *bp, struct net_device *netdev)
18841884
{
18851885
struct bnxt_flower_indr_block_cb_priv *cb_priv;
18861886

1887-
/* All callback list access should be protected by RTNL. */
1888-
ASSERT_RTNL();
1889-
18901887
list_for_each_entry(cb_priv, &bp->tc_indr_block_list, list)
18911888
if (cb_priv->tunnel_netdev == netdev)
18921889
return cb_priv;

drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,6 @@ mlx5e_rep_indr_block_priv_lookup(struct mlx5e_rep_priv *rpriv,
300300
{
301301
struct mlx5e_rep_indr_block_priv *cb_priv;
302302

303-
/* All callback list access should be protected by RTNL. */
304-
ASSERT_RTNL();
305-
306303
list_for_each_entry(cb_priv,
307304
&rpriv->uplink_priv.tc_indr_block_priv_list,
308305
list)

drivers/net/ethernet/netronome/nfp/flower/offload.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,9 +1767,6 @@ nfp_flower_indr_block_cb_priv_lookup(struct nfp_app *app,
17671767
struct nfp_flower_indr_block_cb_priv *cb_priv;
17681768
struct nfp_flower_priv *priv = app->priv;
17691769

1770-
/* All callback list access should be protected by RTNL. */
1771-
ASSERT_RTNL();
1772-
17731770
list_for_each_entry(cb_priv, &priv->indr_block_cb_priv, list)
17741771
if (cb_priv->netdev == netdev)
17751772
return cb_priv;

0 commit comments

Comments
 (0)