Skip to content

bnxt_en: Fix RTNL lock usage in bnxt_sp_task().

Michael Chan netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bnxt_en: Fix bnxt_reset() in the slow path task.drivers/net/ethernet/broadcom/bnxt/bnxt.c+25 -130 replies
2/3bnxt_en: Fix RTNL lock usage on bnxt_update_link().drivers/net/ethernet/broadcom/bnxt/bnxt.c+18 -190 replies
3/3bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status().drivers/net/ethernet/broadcom/bnxt/bnxt.c+6 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/3] bnxt_en: Fix RTNL lock usage in bnxt_sp_task().

There are 2 function calls from bnxt_sp_task() that have buggy RTNL usage. These 2 functions take RTNL lock under some conditions, but some callers (such as open, ethtool) have already taken RTNL. These 3 patches fix the issue by making it clear that callers must take RTNL. If the caller is bnxt_sp_task() which does not automatically take RTNL, we add a common scheme for bnxt_sp_task() to call these functions properly under RTNL.

Michael Chan (3):
bnxt_en: Fix bnxt_reset() in the slow path task.
bnxt_en: Fix RTNL lock usage on bnxt_update_link().
bnxt_en: Fix RTNL lock usage on bnxt_get_port_module_status().

 drivers/net/ethernet/broadcom/bnxt/bnxt.c | 78 ++++++++++++++++++-------------
 1 file changed, 46 insertions(+), 32 deletions(-)
Signature · 1 line
1.8.3.1