-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/mlx5: fix unneeded stub flow table allocation
The HWS non-template flow API is reusing some implementation of template API to unify code logic. So for each rule creation, a stub / temporary table is used in order to reuse the actions construction. Since this is temporary and used only internally, there is no need to save the table permanently. Only parts of them are mandatory, so the allocation / free from the heap of RTE memory is a waste and causes a lot of overhead. By using the pre-allocated workspace and set the needed fields expliticly will save the overhead and help to speed up the rule insertion rate. Fixes: 27d171b ("net/mlx5: abstract flow action and enable reconfigure") Cc: [email protected] Signed-off-by: Bing Zhao <[email protected]> Acked-by: Dariusz Sosnowski <[email protected]>
- Loading branch information
1 parent
d68bcfb
commit 3cd695c
Showing
3 changed files
with
23 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters