diff options
author | Yevgeny Kliteynik <kliteyn@nvidia.com> | 2021-12-29 21:22:05 +0100 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2022-02-24 01:08:11 +0100 |
commit | ecd9c5cd46e013659e2fad433057bad1ba66888e (patch) | |
tree | 48648bbdbfd9180e66ac26aa77a95d6004d1e21a /drivers/net/xen-netback | |
parent | net/mlx5: DR, Don't allow match on IP w/o matching on full ethertype/ip_version (diff) | |
download | linux-ecd9c5cd46e013659e2fad433057bad1ba66888e.tar.xz linux-ecd9c5cd46e013659e2fad433057bad1ba66888e.zip |
net/mlx5: DR, Fix the threshold that defines when pool sync is initiated
When deciding whether to start syncing and actually free all the "hot"
ICM chunks, we need to consider the type of the ICM chunks that we're
dealing with. For instance, the amount of available ICM for MODIFY_ACTION
is significantly lower than the usual STE ICM, so the threshold should
account for that - otherwise we can deplete MODIFY_ACTION memory just by
creating and deleting the same modify header action in a continuous loop.
This patch replaces the hard-coded threshold with a dynamic value.
Fixes: 1c58651412bb ("net/mlx5: DR, ICM memory pools sync optimization")
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'drivers/net/xen-netback')
0 files changed, 0 insertions, 0 deletions