diff options
author | Satish Baddipadige <satish.baddipadige@broadcom.com> | 2016-08-03 06:13:59 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-08-03 20:56:18 +0200 |
commit | 087d7a8c917491e6e7feb707a858d624bf5b5f14 (patch) | |
tree | 8f369e3d24cf0ae5585ed779ac98546062c0e86c /drivers/net/ethernet/broadcom/tg3.c | |
parent | bpf: fix method of PTR_TO_PACKET reg id generation (diff) | |
download | linux-087d7a8c917491e6e7feb707a858d624bf5b5f14.tar.xz linux-087d7a8c917491e6e7feb707a858d624bf5b5f14.zip |
tg3: Fix for diasllow rx coalescing time to be 0
When the rx coalescing time is 0, interrupts
are not generated from the controller and rx path hangs.
To avoid this rx hang, updating the driver to not allow
rx coalescing time to be 0.
Signed-off-by: Satish Baddipadige <satish.baddipadige@broadcom.com>
Signed-off-by: Siva Reddy Kallam <siva.kallam@broadcom.com>
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/tg3.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index ff300f7cf529..f3c6c915e423 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c @@ -14014,6 +14014,7 @@ static int tg3_set_coalesce(struct net_device *dev, struct ethtool_coalesce *ec) } if ((ec->rx_coalesce_usecs > MAX_RXCOL_TICKS) || + (!ec->rx_coalesce_usecs) || (ec->tx_coalesce_usecs > MAX_TXCOL_TICKS) || (ec->rx_max_coalesced_frames > MAX_RXMAX_FRAMES) || (ec->tx_max_coalesced_frames > MAX_TXMAX_FRAMES) || |