net/bnxt: fix nested lock during bonding
authorWeifeng Li <liweifeng96@126.com>
Sat, 3 Jul 2021 10:20:42 +0000 (06:20 -0400)
committerAjit Khaparde <ajit.khaparde@broadcom.com>
Tue, 13 Jul 2021 04:19:11 +0000 (06:19 +0200)
commit8117f5f61a7399fb160cc48d05daf6e0aac734f8
tree3002aaeddd8cfbde047dcadf8c0b66fe1efae943
parent5ed30db87fa810e210fec27a417a3f0d69f7b425
net/bnxt: fix nested lock during bonding

Bnxt PMD registers LSC callback (bond_ethdev_lsc_event_callback) when
working at bond mode. This callback will dead lock when LSC
interrupt triggered.

lsc interrupt ->
bnxt_handle_async_event ->
bnxt_link_update_op ->
bond_ethdev_lsc_event_callback (lsc_lock) ->
bnxt_link_update_op ->
bond_ethdev_lsc_event_callback (lsc_lock dead lock)

Fixes: c2faa1d1969e ("net/bnxt: add support for LSC interrupt event")
Cc: stable@dpdk.org
Signed-off-by: Weifeng Li <liweifeng96@126.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_cpr.c
drivers/net/bnxt/bnxt_ethdev.c