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)
commitaabdd09d535073c35f746e46c3a5d3286088be3a
treeeb59f19de673bae4e5a27d8f9842ea0418391e7c
parent561ed23331dfefea4c8eec616463ee4d0c8fa4b7
tg3: Fix for disallow tx coalescing time to be 0

The recent commit 087d7a8c9174 "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