Skip to content

Commit 19f100f

Browse files
Maor GottliebSaeed Mahameed
authored andcommitted
net/mlx5: Refactor FTE and FG creation code
Split the creation code to two parts: 1) Object allocation - allocate the steering node and initialize its resources. 2) The firmware command execution. Adding active flag to each node - this flag indicates if the object exists in the hardware or not, if not we don't free the hardware resource in error flow. This change will give us the ability to take write lock on the parent node (e.g. FG for FTE creationg) only on the first part. Signed-off-by: Maor Gottlieb <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 46719d7 commit 19f100f

File tree

2 files changed

+190
-167
lines changed

2 files changed

+190
-167
lines changed

0 commit comments

Comments
 (0)