summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_data-v4.9.c
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-05-21 19:32:17 -0500
committerDavid S. Miller <davem@davemloft.net>2022-05-22 20:46:12 +0100
commitbeb90cba607ff060c325e6717d2d5e7ff58abf11 (patch)
treeb1d0253db3f7a62f1bf8a4f7174079f864903523 /drivers/net/ipa/ipa_data-v4.9.c
parent3cebb7c2ed2d76f6f8df67b030c34ffe27867766 (diff)
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>
Diffstat (limited to 'drivers/net/ipa/ipa_data-v4.9.c')
-rw-r--r--drivers/net/ipa/ipa_data-v4.9.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ipa/ipa_data-v4.9.c b/drivers/net/ipa/ipa_data-v4.9.c
index 16786bff7ef8..4b96efd05cf2 100644
--- a/drivers/net/ipa/ipa_data-v4.9.c
+++ b/drivers/net/ipa/ipa_data-v4.9.c
@@ -89,6 +89,7 @@ static const struct ipa_gsi_endpoint_data ipa_gsi_endpoint_data[] = {
.rx = {
.buffer_size = 8192,
.pad_align = ilog2(sizeof(u32)),
+ .aggr_time_limit = 500,
},
},
},
@@ -136,6 +137,7 @@ static const struct ipa_gsi_endpoint_data ipa_gsi_endpoint_data[] = {
.aggregation = true,
.rx = {
.buffer_size = 8192,
+ .aggr_time_limit = 500,
.aggr_close_eof = true,
},
},