]> git.baikalelectronics.ru Git - kernel.git/commit
net/{mlx5|nfp|bnxt}: Remove unnecessary RTNL lock assert
authorEli Cohen <elic@nvidia.com>
Wed, 15 Sep 2021 04:47:27 +0000 (07:47 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2021 13:09:30 +0000 (14:09 +0100)
commit6b7ec54e16340e7b8c52fcd6d41d644547bbcc30
tree95b4fc0f899cc2e4c6e568241e5fa32f76fd2185
parent9bb142d800b4f8bc169d3e35fba6ce46c87fbf11
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 11cd7dbda21d ("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>
drivers/net/ethernet/broadcom/bnxt/bnxt_tc.c
drivers/net/ethernet/mellanox/mlx5/core/en/rep/tc.c
drivers/net/ethernet/netronome/nfp/flower/offload.c