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)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 26 Nov 2017 13:51:09 +0000 (13:51 +0000)
commit938e899ca0b5fa31a16172efb2f0124414a3858b
tree89336bd23d9c3ed90418af29320ea63789367fd1
parentd5025b4788cafc54fb0160d9d8a6ff0fd42416f5
smsc95xx: Configure pause time to 0xffff when tx flow control enabled

commit 9c0827317f235865ae421293f8aecf6cb327a63e upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/net/usb/smsc95xx.c