]> 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)
commit4341f8e850c3985956fbdafc6f3612cf633cd540
treeeaec0c61efc5afd9f62a0cceeb0361fe765f0147
parent013fcd9ec0b09b55b713dadbb22b2cb7a496af24
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