diff options
author | Alex Elder <elder@linaro.org> | 2023-01-30 15:01:54 -0600 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-01-31 21:45:51 -0800 |
commit | 8e7c89d84a2b73cc66485f1749b5e4f8d3a62e6a (patch) | |
tree | 1cc2b80ba072d66d7dd441792237b76b7141fdcd /drivers/net/ipa/ipa_cmd.c | |
parent | 8ba59716d16ac64d81a0b6bbe82ba5cb53af2135 (diff) | |
download | lwn-8e7c89d84a2b73cc66485f1749b5e4f8d3a62e6a.tar.gz lwn-8e7c89d84a2b73cc66485f1749b5e4f8d3a62e6a.zip |
net: ipa: update table cache flushing
Update the code that causes filter and router table caches to be
flushed so that it supports IPA versions 5.0+. It adds a comment in
ipa_hardware_config_hashing() that explains that cacheing does not
need to be enabled, just as before, because it's enabled by default.
(For the record, the FILT_ROUT_CACHE_CFG register would have been
used if we wanted to explicitly enable these.)
Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ipa/ipa_cmd.c')
-rw-r--r-- | drivers/net/ipa/ipa_cmd.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/ipa/ipa_cmd.c b/drivers/net/ipa/ipa_cmd.c index 5d3a875e50fe..16169641ddeb 100644 --- a/drivers/net/ipa/ipa_cmd.c +++ b/drivers/net/ipa/ipa_cmd.c @@ -295,7 +295,11 @@ static bool ipa_cmd_register_write_valid(struct ipa *ipa) * offset will fit in a register write IPA immediate command. */ if (ipa_table_hash_support(ipa)) { - reg = ipa_reg(ipa, FILT_ROUT_HASH_FLUSH); + if (ipa->version < IPA_VERSION_5_0) + reg = ipa_reg(ipa, FILT_ROUT_HASH_FLUSH); + else + reg = ipa_reg(ipa, FILT_ROUT_CACHE_FLUSH); + offset = ipa_reg_offset(reg); name = "filter/route hash flush"; if (!ipa_cmd_register_write_offset_valid(ipa, name, offset)) |