net/mlx5: Allocate FTE object without lock
authorMaor Gottlieb <maorg@mellanox.com>
Tue, 29 Aug 2017 16:17:12 +0000 (19:17 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 26 Sep 2017 17:52:04 +0000 (20:52 +0300)
commitf5c2ff179f51101893e42e78683b23a487929d6c
tree1979ee3a0bde2993e62d4f25dcd252ae56a0f038
parentbd71b08ec2ee4504bcc3b37a9283ce15e93dfacd
net/mlx5: Allocate FTE object without lock

Allocation of new FTE is a massive operation, part of
it could be done without taking the flow group write lock.
Split the FTE allocation to two functions of actions which
need to be under lock and action which don't have.

Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c