smsc95xx: Configure pause time to 0xffff when tx flow control enabled
authorNisar Sayed <Nisar.Sayed@microchip.com>
Mon, 11 Sep 2017 17:43:11 +0000 (17:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Sep 2017 03:36:30 +0000 (20:36 -0700)
commit9c0827317f235865ae421293f8aecf6cb327a63e
tree0e25b5b31a5754557f8d50aadd5025a99a6d43ec
parent230cfd2dbc228a6992287d31c5d93bc6c2552024
smsc95xx: Configure pause time to 0xffff when tx flow control enabled

Configure pause time to 0xffff when tx flow control enabled

Set pause time to 0xffff in the pause frame to indicate the
partner to stop sending the packets. When RX buffer frees up,
the device sends pause frame with pause time zero for partner to
resume transmission.

Fixes: 2f7ca802bdae ("Add SMSC LAN9500 USB2.0 10/100 ethernet adapter driver")
Signed-off-by: Nisar Sayed <Nisar.Sayed@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/smsc95xx.c