aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipa/ipa_table.h
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-03-15 10:01:18 -0500
committerDavid S. Miller <davem@davemloft.net>2021-03-15 14:51:53 -0700
commit0f13b5e6bf283a086b6d5b47be1ecf05a341eb9b (patch)
tree739e511919d08825fc7f1e3bf5ae9af3bf5b6002 /drivers/net/ipa/ipa_table.h
parentnet: phy: add Marvell 88X2222 transceiver support (diff)
downloadlinux-dev-0f13b5e6bf283a086b6d5b47be1ecf05a341eb9b.tar.xz
linux-dev-0f13b5e6bf283a086b6d5b47be1ecf05a341eb9b.zip
net: ipa: make ipa_table_hash_support() inline
In review, Alexander Duyck suggested that ipa_table_hash_support() was trivial enough that it could be implemented as a static inline function in the header file. But the patch had already been accepted. Implement his suggestion. Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Alexander Duyck <alexanderduyck@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_table.h')
-rw-r--r--drivers/net/ipa/ipa_table.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ipa/ipa_table.h b/drivers/net/ipa/ipa_table.h
index 1a68d20f19d6..889c2e93b122 100644
--- a/drivers/net/ipa/ipa_table.h
+++ b/drivers/net/ipa/ipa_table.h
@@ -55,7 +55,10 @@ static inline bool ipa_filter_map_valid(struct ipa *ipa, u32 filter_mask)
* ipa_table_hash_support() - Return true if hashed tables are supported
* @ipa: IPA pointer
*/
-bool ipa_table_hash_support(struct ipa *ipa);
+static inline bool ipa_table_hash_support(struct ipa *ipa)
+{
+ return ipa->version != IPA_VERSION_4_2;
+}
/**
* ipa_table_reset() - Reset filter and route tables entries to "none"