Maor Gottlieb 19f100fef4 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 <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
2017-09-26 20:52:02 +03:00
..
2017-08-24 16:02:58 +03:00
2017-01-09 20:25:09 +02:00
2017-08-24 12:33:31 -07:00
2017-08-07 10:42:09 -07:00
2017-08-24 16:02:58 +03:00
2017-09-03 17:49:17 -07:00
2017-04-22 21:52:37 +03:00
2016-05-09 22:05:13 -04:00
2017-06-27 16:36:47 +03:00
2017-06-27 16:36:47 +03:00