]> git.itanic.dy.fi Git - linux-stable/commit
net: ipa: support zeroing new cache tables
authorAlex Elder <elder@linaro.org>
Mon, 30 Jan 2023 21:01:55 +0000 (15:01 -0600)
committerJakub Kicinski <kuba@kernel.org>
Wed, 1 Feb 2023 05:45:52 +0000 (21:45 -0800)
commita08cedc31d50b698c2e36a08c5a69a42d73313c9
treeba2c4b93288db9628cca81d90d9eabbc1699a8d4
parent8e7c89d84a2b73cc66485f1749b5e4f8d3a62e6a
net: ipa: support zeroing new cache tables

IPA v5.0+ separates the configuration of entries in the cached
(previously "hashed") routing and filtering tables into distinct
registers.  Previously a single "filter and router" register updated
entries in both tables at once; now the routing and filter table
caches have separate registers that define their content.

This patch updates the code that zeroes entries in the cached filter
and router tables to support IPA versions including v5.0+.

Signed-off-by: Alex Elder <elder@linaro.org>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ipa/ipa_table.c