]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Fix for disallow tx coalescing time to be 0
authorIvan Vecera <ivecera@redhat.com>
Thu, 1 Sep 2016 09:28:59 +0000 (11:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Sep 2016 16:57:40 +0000 (09:57 -0700)
commitf21a7f443e6da02fcc71d444a27e9d4a64408d8d
treeeb59f19de673bae4e5a27d8f9842ea0418391e7c
parent9e7937f93ec4c52abd4a54cd6fe10200135c5df0
tg3: Fix for disallow tx coalescing time to be 0

The recent commit 4441a79f9de4 "tg3: Fix for diasllow rx coalescing
time to be 0" disallow to set Rx coalescing time to be 0 as this stops
generating interrupts for the incoming packets. I found the zero
Tx coalescing time stops generating interrupts for outgoing packets
as well and fires Tx watchdog later. To avoid this, don't allow to set
Tx coalescing time to 0 and also remove subsequent checks that become
senseless.

Cc: satish.baddipadige@broadcom.com
Cc: siva.kallam@broadcom.com
Cc: michael.chan@broadcom.com
Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Acked-by: Siva Reddy Kallam <siva.kallam@broadcom.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c