]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix IRQ coalescing regression.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 3 Nov 2017 07:32:39 +0000 (03:32 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Nov 2017 12:33:31 +0000 (21:33 +0900)
commit3347b38a43a711f9b349c490d326f0b1c7360831
treeeb6905bbf94ebf3e9f9fe79d8c199ca73d9b3a11
parenta61c376f1905f1e1c2e69648f25120aabb224730
bnxt_en: Fix IRQ coalescing regression.

Recent IRQ coalescing clean up has removed a guard-rail for the max DMA
buffer coalescing value.  This is a 6-bit value and must not be 0.  We
already have a check for 0 but 64 is equivalent to 0 and will cause
non-stop interrupts.  Fix it by adding the proper check.

Fixes: 09deae332649 ("bnxt_en: Refactor and simplify coalescing code.")
Reported-by: Andy Gospodarek <gospo@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c