]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net/mlx5_core: Refactor device capability function
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 23 Feb 2016 08:25:22 +0000 (10:25 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 21 Mar 2016 20:29:07 +0000 (16:29 -0400)
commitb06e7de8a9d8d1d540ec122bbdf2face2a211634
tree07762707f1911508a4df99cafc7b6cd5360873a5
parent91d9ed8443b88cc50b81cf5ec900172515270f6f
net/mlx5_core: Refactor device capability function

Device capability function was called similar in all places.
It was called twice for every queried parameter, while the
difference between calls was in HCA capability mode only.

The change proposed unify these calls into one function.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/fw.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/driver.h