net/mlx5: DR, In rehash write the line in the entry immediately

Don't wait for the whole table to be ready - write each row immediately.
This way we save allocations of the ste_send_info structure and improve
performance.

Signed-off-by: Erez Shitrit <erezsh@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Reviewed-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
Yevgeny Kliteynik 2022-06-29 13:19:36 +03:00 committed by Saeed Mahameed
parent 183a6706a0
commit 1bea2dc7f4

View File

@ -358,6 +358,15 @@ static int dr_rule_rehash_copy_htbl(struct mlx5dr_matcher *matcher,
update_list);
if (err)
goto clean_copy;
/* In order to decrease the number of allocated ste_send_info
* structs, send the current table row now.
*/
err = dr_rule_send_update_list(update_list, matcher->tbl->dmn, false);
if (err) {
mlx5dr_dbg(matcher->tbl->dmn, "Failed updating table to HW\n");
goto clean_copy;
}
}
clean_copy: