]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: specify RX aggregation time limit in config data
authorAlex Elder <elder@linaro.org>
Sun, 22 May 2022 00:32:17 +0000 (19:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 19:46:12 +0000 (20:46 +0100)
commit3926b124e33e5d1e18eeb7ca5722e06f7b342408
treeb1d0253db3f7a62f1bf8a4f7174079f864903523
parentce591de7a2c8566a1508a06dbb6903c303785e90
net: ipa: specify RX aggregation time limit in config data

Don't assume that a 500 microsecond time limit should be used for
all receive endpoints that support aggregation.  Instead, specify
the time limit to use in the configuration data.

Set a 500 microsecond limit for all existing RX endpoints, as before.

Checking for overflow for the time limit field is a bit complicated.
Rather than duplicate a lot of code in ipa_endpoint_data_valid_one(),
call WARN() if any value is found to be too large when encoding it.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_data-v3.1.c
drivers/net/ipa/ipa_data-v3.5.1.c
drivers/net/ipa/ipa_data-v4.11.c
drivers/net/ipa/ipa_data-v4.2.c
drivers/net/ipa/ipa_data-v4.5.c
drivers/net/ipa/ipa_data-v4.9.c
drivers/net/ipa/ipa_endpoint.c
drivers/net/ipa/ipa_endpoint.h