summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic
diff options
context:
space:
mode:
authorYevgeny Kliteynik <kliteyn@nvidia.com>2021-12-29 21:22:05 +0100
committerSaeed Mahameed <saeedm@nvidia.com>2022-02-24 01:08:11 +0100
commitecd9c5cd46e013659e2fad433057bad1ba66888e (patch)
tree48648bbdbfd9180e66ac26aa77a95d6004d1e21a /drivers/scsi/fnic
parentnet/mlx5: DR, Don't allow match on IP w/o matching on full ethertype/ip_version (diff)
downloadlinux-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/scsi/fnic')
0 files changed, 0 insertions, 0 deletions