summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2020-03-08 18:45:47 -0400
committerDavid S. Miller <davem@davemloft.net>2020-03-08 21:54:46 -0700
commit54a9062f6909bed8667984c1726bce8183c72118 (patch)
tree6c41dae967347159b6ed45f6633d944779c97e20 /drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h
parent138470a9b2cc2e26e6018300394afc3858a54e6a (diff)
downloadlinux-54a9062f6909bed8667984c1726bce8183c72118.tar.bz2
bnxt_en: Handle all NQ notifications in bnxt_poll_p5().
In bnxt_poll_p5(), the logic polls for up to 2 completion rings (RX and TX) for work. In the current code, if we reach budget polling the first completion ring, we will stop. If the other completion ring has work to do, we will handle it when NAPI calls us back. This is not optimal. We potentially leave an unproceesed entry in the NQ. When we are finally done with NAPI polling and re-enable interrupt, the remaining entry in the NQ will cause interrupt to be triggered immediately for no reason. Modify the code in bnxt_poll_p5() to keep looping until all NQ entries are handled even if the first completion ring has reached budget. Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.h')
0 files changed, 0 insertions, 0 deletions