Skip to contentSkip to conversation

ice: remove unnecessary RTNL lock assert

PATCH New Michal Swiatkowski 1 participant 1 message Oct 27, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: remove unnecessary RTNL lock assert

Follow changes in commit 7c3a0a018e67 ("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.

Having this assert in the ice_indr_block_priv_lookup leads to ugly assert failed information in dmesg after:
- creating gretap tunnel
- adding tc qdisc on the tunnel device
- rmmod driver
- insmod driver

As this assert isn't needed, remove it.

---
This commit should be squashed with "ice: support for indirect notification"

 drivers/net/ethernet/intel/ice/ice_main.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/net/ethernet/intel/ice/ice_main.c +0 -3
index 728c11103b37..d7ecbec93b11 100644
@@ -8153,9 +8153,6 @@ ice_indr_block_priv_lookup(struct ice_netdev_priv *np,
 {
 	struct ice_indr_block_priv *cb_priv;
 
-	/* All callback list access should be protected by RTNL. */
-	ASSERT_RTNL();
-
 	list_for_each_entry(cb_priv, &np->tc_indr_block_priv_list, list) {
 		if (!cb_priv->netdev)
 			return NULL;
Signature · 1 line
2.31.1