net/mlx4: check max number of ports dynamically
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>
Fri, 1 Sep 2017 08:06:18 +0000 (10:06 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:47 +0000 (02:49 +0200)
commit8264279967dc5938e1ab6d25da5c577d61ab5b17
tree49141cb6539dba542c48a78505c14c74955eb95a
parentf2318196c71a78b40b645b6fd849609103f6dca7
net/mlx4: check max number of ports dynamically

Use maximum number reported by hardware capabilities as replacement for the
static check on MLX4_PMD_MAX_PHYS_PORTS.

Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Allain Legacy <allain.legacy@windriver.com>
drivers/net/mlx4/mlx4.c
drivers/net/mlx4/mlx4.h