diff options
author | Alex Elder <elder@linaro.org> | 2022-10-25 14:51:41 -0500 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-10-27 13:38:12 +0200 |
commit | 0439e6743c5c77520e91bf52a0d16da586214753 (patch) | |
tree | 0734c71384a36852dc1fec51fe6369cdfc6c9365 /drivers/net/ipa/ipa.h | |
parent | net: ipa: record the route table size in the IPA structure (diff) | |
download | wireguard-linux-0439e6743c5c77520e91bf52a0d16da586214753.tar.xz wireguard-linux-0439e6743c5c77520e91bf52a0d16da586214753.zip |
net: ipa: determine route table size from memory region
Currently we assume that any routing table contains a fixed number
of entries. The number of entries in a routing table can actually
vary, depending only on the size of the IPA-local memory region used
to hold the table.
Stop assuming that a routing table has exactly 15 entries. Instead,
determine the number of entries in a routing table by dividing its
memory region size by the size of an entry.
The number of entries is computed early, when ipa_table_mem_valid()
is called by ipa_table_init().
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ipa/ipa.h')
0 files changed, 0 insertions, 0 deletions