OSDN Git Service

net/mlx5: Factor out HCA capabilities functions
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 17 Feb 2019 11:11:02 +0000 (13:11 +0200)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 19 Feb 2019 12:40:44 +0000 (14:40 +0200)
commit37b6bb77c6fdad36f0d7bd425c005a014d5dffe4
tree97b62496f51f9f9803f69b7f7d0900d2a9f19f19
parent08e8676f1607925adf36e399f0faa8ce3b10bb86
net/mlx5: Factor out HCA capabilities functions

Combine all HCA capabilities setters under one function
and compile out the ODP related function in case kernel
was compiled without ODP support.

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