]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf2243542378add366ebf17fdf31446a6da212cc0
treeeaec0c61efc5afd9f62a0cceeb0361fe765f0147
parent31b12fb18eaa428f2d25e92969095ff1d0a51cec
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