]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ipa: support hard aggregation limits
authorAlex Elder <elder@linaro.org>
Sun, 22 May 2022 00:32:16 +0000 (19:32 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 19:46:12 +0000 (20:46 +0100)
commit3cebb7c2ed2d76f6f8df67b030c34ffe27867766
treef3eff2b18c7a73f21c86fac95d4d8c4df6ff0fa8
parent153213f0554d5053d5f9385ae6b4f116c4dc1fb8
net: ipa: support hard aggregation limits

Add a new flag for AP receive endpoints that indicates whether
a "hard limit" is used as a criterion for closing aggregation.
Add comments explaining the difference between "hard" and "soft"
aggregation limits.

Pass a flag to ipa_aggr_size_kb() so it computes the proper
aggregation size value whether using hard or soft limits.  Move
that function earlier in "ipa_endpoint.c" so it can be used
without a forward-reference.

Update ipa_endpoint_data_valid_one() so it validates endpoints whose
data indicate a hard aggregation limit is used, and so it reports
set aggregation flags for endpoints without aggregation enabled.

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