diff options
author | Alex Elder <elder@linaro.org> | 2022-10-25 22:51:41 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-10-27 14:38:12 +0300 |
commit | 0439e6743c5c77520e91bf52a0d16da586214753 (patch) | |
tree | 0734c71384a36852dc1fec51fe6369cdfc6c9365 /drivers/net/ipa/ipa_table.h | |
parent | fc094058ce01984aa4cb8b580812b16f5429c7e7 (diff) | |
download | linux-0439e6743c5c77520e91bf52a0d16da586214753.tar.xz |
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_table.h')
-rw-r--r-- | drivers/net/ipa/ipa_table.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ipa/ipa_table.h b/drivers/net/ipa/ipa_table.h index 65d96debd391..31363292dc1d 100644 --- a/drivers/net/ipa/ipa_table.h +++ b/drivers/net/ipa/ipa_table.h @@ -16,9 +16,6 @@ struct ipa; /* The number of route table entries allotted to the modem */ #define IPA_ROUTE_MODEM_COUNT 8 -/* The maximum number of route table entries (IPv4, IPv6; hashed or not) */ -#define IPA_ROUTE_COUNT_MAX 15 - /** * ipa_filter_map_valid() - Validate a filter table endpoint bitmap * @ipa: IPA pointer |