diff options
author | Alex Elder <elder@linaro.org> | 2021-02-12 08:34:01 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-02-12 16:54:17 -0800 |
commit | a266ad6b5debfee0b9db4d032f5ad8d758b9b087 (patch) | |
tree | 06a56bfb149d9cf8a22b8fe4ccbae6294a30116f /drivers/net/ipa/ipa_cmd.c | |
parent | 2d65ed76924bc772d3974b0894d870b1aa63b34a (diff) | |
download | lwn-a266ad6b5debfee0b9db4d032f5ad8d758b9b087.tar.gz lwn-a266ad6b5debfee0b9db4d032f5ad8d758b9b087.zip |
net: ipa: introduce ipa_table_hash_support()
Introduce a new function to abstract the knowledge of whether hashed
routing and filter tables are supported for a given IPA instance.
IPA v4.2 is the only one that doesn't support hashed tables (now
and for the foreseeable future), but the name of the helper function
is better for explaining what's going on.
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipa/ipa_cmd.c')
-rw-r--r-- | drivers/net/ipa/ipa_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ipa/ipa_cmd.c b/drivers/net/ipa/ipa_cmd.c index fd8bf6468d31..35e35852c25c 100644 --- a/drivers/net/ipa/ipa_cmd.c +++ b/drivers/net/ipa/ipa_cmd.c @@ -268,7 +268,7 @@ static bool ipa_cmd_register_write_valid(struct ipa *ipa) /* If hashed tables are supported, ensure the hash flush register * offset will fit in a register write IPA immediate command. */ - if (ipa->version != IPA_VERSION_4_2) { + if (ipa_table_hash_support(ipa)) { offset = ipa_reg_filt_rout_hash_flush_offset(ipa->version); name = "filter/route hash flush"; if (!ipa_cmd_register_write_offset_valid(ipa, name, offset)) |