• Jing Huang's avatar
    bna: tx rx cleanup fix · 01b54b14
    Jing Huang authored
    This patch removes busy wait in tx/rx cleanup. bnad_cb_tx_cleanup() and
    bnad_cb_rx_cleanup() functions are called from irq context, and currently
    they do busy wait for the in-flight transmit or the currently executing napi
    polling routine to complete. To fix the issue, we create a workqueue to defer
    tx & rx cleanup processing, an in the tx rx cleanup handler, we will
    wait respective in flight processing to complete, before freeing the buffers.
    Signed-off-by: default avatarJing Huang <huangj@brocade.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    01b54b14
bnad.h 9.65 KB