commit | 0501fc477c2bed1cce02acbc22d79418bfa2c8c3 | [log] [tgz] |
---|---|---|
author | Mark Bloch <markb@mellanox.com> | Sun Sep 11 12:54:50 2016 +0000 |
committer | Leon Romanovsky <leon@kernel.org> | Sun Oct 30 15:43:15 2016 +0200 |
tree | 1216f1579ed35a993b6443d527b080ba85dcedc7 | |
parent | 0fd758d6112f867b2cc6df0f6a856048ff99b211 [diff] |
net/mlx5: Use fte status to decide on firmware command An fte status becomes FS_FTE_STATUS_EXISTING only after it was created in HW. We can use this in order to simplify the logic on what firmware command to use. If the status isn't FS_FTE_STATUS_EXISTING we need to create the fte, otherwise we need only to update it. Signed-off-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>