commit | b06e7de8a9d8d1d540ec122bbdf2face2a211634 | [log] [tgz] |
---|---|---|
author | Leon Romanovsky <leonro@mellanox.com> | Tue Feb 23 10:25:22 2016 +0200 |
committer | Doug Ledford <dledford@redhat.com> | Mon Mar 21 16:29:07 2016 -0400 |
tree | 07762707f1911508a4df99cafc7b6cd5360873a5 | |
parent | 91d9ed8443b88cc50b81cf5ec900172515270f6f [diff] |
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>