net: ipa: record the route table size in the IPA structure
authorAlex Elder <elder@linaro.org>
Tue, 25 Oct 2022 19:51:40 +0000 (14:51 -0500)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 27 Oct 2022 11:38:12 +0000 (13:38 +0200)
commitfc094058ce01984aa4cb8b580812b16f5429c7e7
tree76b15b894b8a2d040199a965d4a2c1d8e04836e2
parentd5e2d038dbece821f1af57acbeded3aa9a1832c1
net: ipa: record the route table size in the IPA structure

The non-hashed routing tables for IPv4 and IPv6 will be the same
size.  And if supported, the hashed routing tables will be the same
size as the non-hashed tables.

Record the size (number of entries) of all routing tables in the IPA
structure.  For now, initialize this field using IPA_ROUTE_TABLE_MAX,
and just do so when the first route table is validated.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ipa/ipa.h
drivers/net/ipa/ipa_table.c