OSDN Git Service

net: ipa: check table memory regions earlier
authorAlex Elder <elder@linaro.org>
Fri, 21 Oct 2022 19:13:40 +0000 (14:13 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 25 Oct 2022 09:15:19 +0000 (11:15 +0200)
commit73da9cac517ce4dc3a00b87f800846dcc2469ddf
tree4c8419100b6b3ca7fa623ffbab551e24d271ef2c
parent39ad815244ac3746c0194ae3eb45cb1f51d3489a
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>
drivers/net/ipa/ipa_mem.c
drivers/net/ipa/ipa_table.c
drivers/net/ipa/ipa_table.h