net: ipa: record and use the number of defined endpoint IDs
authorAlex Elder <elder@linaro.org>
Thu, 27 Oct 2022 12:26:32 +0000 (07:26 -0500)
committerJakub Kicinski <kuba@kernel.org>
Sat, 29 Oct 2022 05:06:48 +0000 (22:06 -0700)
commitb7aaff0b010ede619bdea22118d4a2f9aa966867
tree5f75414aab52e7c77f64ab8c5b420e67bb42f009
parent5274c7158b2b6661f43883617ce638200312412b
net: ipa: record and use the number of defined endpoint IDs

Define a new field in the IPA structure that records the maximum
number of entries that will be used in the IPA endpoint array.  Use
that value rather than IPA_ENDPOINT_MAX to determine the end
condition for two loops that iterate over all endpoints.

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