Re: [dpdk-dev] [PATCH v1 03/48] net/mlx4: check max number of ports dynamically

2017-08-02 Thread Adrien Mazarguil
On Tue, Aug 01, 2017 at 05:35:30PM +, Legacy, Allain wrote: > > -Original Message- > > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > > Sent: Tuesday, August 01, 2017 12:54 PM > <...> > > @@ -5946,12 +5949,11 @@ mlx4_arg_parse(const char *key, const char *val, > > void *ou

Re: [dpdk-dev] [PATCH v1 03/48] net/mlx4: check max number of ports dynamically

2017-08-01 Thread Legacy, Allain
> -Original Message- > From: Adrien Mazarguil [mailto:adrien.mazarg...@6wind.com] > Sent: Tuesday, August 01, 2017 12:54 PM <...> > @@ -5946,12 +5949,11 @@ mlx4_arg_parse(const char *key, const char *val, > void *out) > return -errno; > } > if (strcmp(MLX4_PMD_PORT

[dpdk-dev] [PATCH v1 03/48] net/mlx4: check max number of ports dynamically

2017-08-01 Thread Adrien Mazarguil
Use maximum number reported by hardware capabilities as replacement for the static check on MLX4_PMD_MAX_PHYS_PORTS. Cc: Gaƫtan Rivet Cc: Allain Legacy Signed-off-by: Adrien Mazarguil --- drivers/net/mlx4/mlx4.c | 43 +-- drivers/net/mlx4/mlx4.h | 3 ---