]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Refactor HCA capability set flow
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 19 Mar 2020 09:43:59 +0000 (11:43 +0200)
committerLeon Romanovsky <leonro@mellanox.com>
Sun, 19 Apr 2020 12:57:52 +0000 (15:57 +0300)
commit6e13d56365b0379aeebdbc4e02583ed9aeea9b72
tree1962c171536c8b55cc44b96ae0c46fe31e614adb
parent1e988ba5f5b0a389a20a48ce155efb8705210abb
net/mlx5: Refactor HCA capability set flow

Reduce the amount of kzalloc/kfree cycles by allocating
command structure in the parent function and leverage the
knowledge that set_caps() is called for HCA capabilities
only with specific HW structure as parameter to calculate
mailbox size.

Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c