aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2023-07-28 13:50:20 -0700
committerJakub Kicinski <[email protected]>2023-07-31 14:28:39 -0700
commit37b61cda9c1606cd8b6445d900ca9dc03185e8b6 (patch)
treecae7311b38243f08b5fc3c6b745a740b881c0a4d /drivers/fpga/fpga-mgr.c
parent4b31fd4d77ffa430d0b74ba1885ea0a41594f202 (diff)
bnxt: don't handle XDP in netpoll
Similarly to other recently fixed drivers make sure we don't try to access XDP or page pool APIs when NAPI budget is 0. NAPI budget of 0 may mean that we are in netpoll. This may result in running software IRQs in hard IRQ context, leading to deadlocks or crashes. To make sure bnapi->tx_pkts don't get wiped without handling the events, move clearing the field into the handler itself. Remember to clear tx_pkts after reset (bnxt_enable_napi()) as it's technically possible that netpoll will accumulate some tx_pkts and then a reset will happen, leaving tx_pkts out of sync with reality. Fixes: 322b87ca55f2 ("bnxt_en: add page_pool support") Reviewed-by: Andy Gospodarek <[email protected]> Reviewed-by: Michael Chan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions