]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: reduce aggregation time limit
authorAlex Elder <elder@linaro.org>
Mon, 29 Jun 2020 21:55:22 +0000 (16:55 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Jul 2020 22:27:09 +0000 (15:27 -0700)
commit7484b5af3f9cbf4ecb7c03e9bfe9f5bdbb54c9a4
treec699a71f0ac72ed19949a049b4b20372c9de9423
parent162c2f375a90b2e9ec08f80544fb3a2c20c23be3
net: ipa: reduce aggregation time limit

Halve the time limit used when aggregation is enabled on an RX
endpoint, to half a millisecond.

Use DIV_ROUND_CLOSEST() to compute the value that represents the
time period, to get better accuracy in the event the time limit is
not an even multiple of the granularity.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_endpoint.c