net/bnxt: fix race between interrupt handler and dev config
authorSomnath Kotur <somnath.kotur@broadcom.com>
Fri, 11 Oct 2019 04:44:16 +0000 (10:14 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:09 +0000 (16:43 +0200)
commit5526c8025d4d16e68b412e378b0ceab42dbcd9d4
tree56ddd225c630456865115ff5e5ae7a9dd804c27a
parent9924dfd601fadeacb6c9968437cad8c6f853f77f
net/bnxt: fix race between interrupt handler and dev config

Fix a possible that while interrupt handler is in the middle of
processing, dev_configure_op() might come in and try to destroy/realloc
the default completion ring on which interrupt completions arrive.
Synchronize the two so they don't race each other

Fixes: 7bc8e9a227cc ("net/bnxt: support async link notification")
Cc: stable@dpdk.org
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt.h
drivers/net/bnxt/bnxt_ethdev.c
drivers/net/bnxt/bnxt_irq.c