r8152: set inter fram gap time depending on speed
authorHayes Wang <hayeswang@realtek.com>
Fri, 16 Apr 2021 08:04:32 +0000 (16:04 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Apr 2021 22:28:31 +0000 (15:28 -0700)
commit5133bcc7481528e36fff0a3b056601efb704fb32
treeeaec0c61efc5afd9f62a0cceeb0361fe765f0147
parentc5d66587b8900201e1530b7c18d41e87bd5812f4
r8152: set inter fram gap time depending on speed

Set the maximum inter frame gap time (144ns) for speed 10M/half and
100M/half. It improves the performance for those speeds. And, there
is no effect for the other speeds.

For 10M/half and 100M/half, the fast inter frame gap time let the
device couldn't use the feature of the aggregation effectively,
because the transfer would be completed fastly. Therefore, use the
maximum value to improve the effect of the aggregation. However, you
may not feel the improvement for fast CPUs, because they compensate
for the effect of the aggregation.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c