]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: define per-endpoint receive buffer size
authorAlex Elder <elder@linaro.org>
Tue, 1 Feb 2022 15:37:36 +0000 (09:37 -0600)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Feb 2022 05:13:45 +0000 (21:13 -0800)
commited23f02680caabea430a7688e22e9f7bc7b5e714
tree725b180d1ce3c24a663ba906c8dd922ec9839fbe
parent52dae93f3bad842c6d585700460a0dea4d70e096
net: ipa: define per-endpoint receive buffer size

Allow RX endpoints to have differing receive buffer sizes.  Define
the receive buffer size in the configuration data, and use that
rather than IPA_RX_BUFFER_SIZE when configuring the endpoint.

Add verification in ipa_endpoint_data_valid_one() that the receive
buffer specified for AP RX endpoints is both big enough to handle at
least one full packet, and not so big in an aggregating endpoint
that its size can't be represented when programming the hardware.
Move aggr_byte_limit_max() up in "ipa_endpoint.c" so it can be used
earlier in the file without a forward-reference.

Initially we'll just keep the 8KB receive buffer size already in use
for all AP RX endpoints..

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
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_data.h
drivers/net/ipa/ipa_endpoint.c