]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Use fte status to decide on firmware command
authorMark Bloch <markb@mellanox.com>
Sun, 11 Sep 2016 12:54:50 +0000 (12:54 +0000)
committerLeon Romanovsky <leon@kernel.org>
Sun, 30 Oct 2016 13:43:15 +0000 (15:43 +0200)
commitdf112c758ebc128c899738e1e11aea82ca1ce4a9
tree1216f1579ed35a993b6443d527b080ba85dcedc7
parent1dc2858fbfc7417561af352845f956dfc0d13319
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>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c