diff options
author | Tal Gilboa <talgi@mellanox.com> | 2020-04-23 13:23:06 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-05-29 13:07:53 -0700 |
commit | ebeaf084ad5c0eeaf8ea3314f62cc28cb79d529f (patch) | |
tree | e9f7747570ddca406d70219597a59dfa03842047 /lib/mpi | |
parent | b623603bbb473e7e19af358b98335e63bebb2eb5 (diff) |
net/mlx5e: Properly set default values when disabling adaptive moderation
Add a call to mlx5e_reset_rx/tx_moderation() when enabling/disabling
adaptive moderation, in order to select the proper default values.
In order to do so, we separate the logic of selecting the moderation values
and setting moderion mode (CQE/EQE based).
Fixes: 0088cbbc4b66 ("net/mlx5e: Enable CQE based moderation on TX CQ")
Fixes: 9908aa292971 ("net/mlx5e: CQE based moderation")
Signed-off-by: Tal Gilboa <talgi@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions