summaryrefslogtreecommitdiff
path: root/drivers/net/ipa/ipa_table.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-10-21 14:13:39 -0500
committerPaolo Abeni <pabeni@redhat.com>2022-10-25 11:15:19 +0200
commit39ad815244ac3746c0194ae3eb45cb1f51d3489a (patch)
treeb528e63d648d39f39b1f633fecdf302d20c61904 /drivers/net/ipa/ipa_table.h
parent7fd10a2aca6a2ff3316fac7fb2a72f6e1b303a57 (diff)
net: ipa: kill ipa_table_valid()
What ipa_table_valid() (and ipa_table_valid_one(), which it calls) does is ensure that the memory regions that hold routing and filter tables have reasonable size. Specifically, it checks that the size of a region is sufficient (or rather, exactly the right size) to hold the maximum number of entries supported by the driver. (There is an additional check that's erroneous, but in practice it is never reached.) Recently ipa_table_mem_valid() was added, which is called by ipa_table_init(). That function verifies that all table memory regions are of sufficient size, and requires hashed tables to have zero size if hashing is not supported. It only ensures the filter table is large enough to hold the number of endpoints that support filtering, but that is adequate. Therefore everything that ipa_table_valid() does is redundant, so get rid of it. 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.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/net/ipa/ipa_table.h b/drivers/net/ipa/ipa_table.h
index 395189f75d78..73ca8369c635 100644
--- a/drivers/net/ipa/ipa_table.h
+++ b/drivers/net/ipa/ipa_table.h
@@ -20,14 +20,6 @@ struct ipa;
#define IPA_ROUTE_COUNT_MAX 15
/**
- * ipa_table_valid() - Validate route and filter table memory regions
- * @ipa: IPA pointer
- *
- * Return: true if all regions are valid, false otherwise
- */
-bool ipa_table_valid(struct ipa *ipa);
-
-/**
* ipa_filter_map_valid() - Validate a filter table endpoint bitmap
* @ipa: IPA pointer
* @filter_mask: Filter table endpoint bitmap to check