]> 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)
commit7c3a0a018e672a9723a79b128227272562300055
tree95b4fc0f899cc2e4c6e568241e5fa32f76fd2185
parent84fb7dfc7463afcba61281f36535576a7f7b0626
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 74fc4f828769 ("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