summaryrefslogtreecommitdiffstats
path: root/drivers/net/ipa/ipa_data-v4.5.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-02-01 09:37:36 -0600
committerJakub Kicinski <kuba@kernel.org>2022-02-02 21:13:45 -0800
commited23f02680caabea430a7688e22e9f7bc7b5e714 (patch)
tree725b180d1ce3c24a663ba906c8dd922ec9839fbe /drivers/net/ipa/ipa_data-v4.5.c
parent52dae93f3bad842c6d585700460a0dea4d70e096 (diff)
downloadcachepc-linux-ed23f02680caabea430a7688e22e9f7bc7b5e714.tar.gz
cachepc-linux-ed23f02680caabea430a7688e22e9f7bc7b5e714.zip
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>
Diffstat (limited to 'drivers/net/ipa/ipa_data-v4.5.c')
-rw-r--r--drivers/net/ipa/ipa_data-v4.5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ipa/ipa_data-v4.5.c b/drivers/net/ipa/ipa_data-v4.5.c
index 2da2c4194f2e..944f72b0f285 100644
--- a/drivers/net/ipa/ipa_data-v4.5.c
+++ b/drivers/net/ipa/ipa_data-v4.5.c
@@ -95,6 +95,7 @@ static const struct ipa_gsi_endpoint_data ipa_gsi_endpoint_data[] = {
.aggregation = true,
.status_enable = true,
.rx = {
+ .buffer_size = 8192,
.pad_align = ilog2(sizeof(u32)),
},
},
@@ -142,6 +143,7 @@ static const struct ipa_gsi_endpoint_data ipa_gsi_endpoint_data[] = {
.qmap = true,
.aggregation = true,
.rx = {
+ .buffer_size = 8192,
.aggr_close_eof = true,
},
},