OSDN Git Service

lan78xx: Set flow control threshold to prevent packet loss
authorJohn Efstathiades <john.efstathiades@pebblebay.com>
Tue, 24 Aug 2021 18:56:06 +0000 (19:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 09:55:42 +0000 (10:55 +0100)
commitdc35f8548e005b8a32fedaa5b01d52585eba5f1d
tree089da7160beae94e9f6a4dbceae9c3480cb7ec5c
parent3bef6b9e98888456805331201c0d8587c14fa108
lan78xx: Set flow control threshold to prevent packet loss

Set threshold at which flow control is triggered to 3/4 full of
the internal Rx packet FIFO to prevent packet drops at high data
rates. The new setting reduces the number of dropped UDP frames
and TCP retransmit requests especially on less capable CPUs.

Signed-off-by: John Efstathiades <john.efstathiades@pebblebay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c