diff options
author | Alex Elder <elder@linaro.org> | 2022-10-21 14:13:40 -0500 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-10-25 11:15:19 +0200 |
commit | 73da9cac517ce4dc3a00b87f800846dcc2469ddf (patch) | |
tree | 4c8419100b6b3ca7fa623ffbab551e24d271ef2c /drivers/net/ipa/ipa_table.h | |
parent | 39ad815244ac3746c0194ae3eb45cb1f51d3489a (diff) | |
download | linux-stable-73da9cac517ce4dc3a00b87f800846dcc2469ddf.tar.gz linux-stable-73da9cac517ce4dc3a00b87f800846dcc2469ddf.tar.bz2 linux-stable-73da9cac517ce4dc3a00b87f800846dcc2469ddf.zip |
net: ipa: check table memory regions earlier
Verify that the sizes of the routing and filter table memory regions
are valid as part of memory initialization, rather than waiting for
table initialization. The main reason to do this is that upcoming
patches use these memory region sizes to determine the number of
entries in these tables, and we'll want to know these sizes are good
sooner.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ipa/ipa_table.h')
-rw-r--r-- | drivers/net/ipa/ipa_table.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/ipa/ipa_table.h b/drivers/net/ipa/ipa_table.h index 73ca8369c635..65d96debd391 100644 --- a/drivers/net/ipa/ipa_table.h +++ b/drivers/net/ipa/ipa_table.h @@ -78,4 +78,11 @@ int ipa_table_init(struct ipa *ipa); */ void ipa_table_exit(struct ipa *ipa); +/** + * ipa_table_mem_valid() - Validate sizes of table memory regions + * @ipa: IPA pointer + * @modem_route_count: Number of modem route table entries + */ +bool ipa_table_mem_valid(struct ipa *ipa, bool modem_route_count); + #endif /* _IPA_TABLE_H_ */ |