net/mlx: replace hardcoded value with macro
authorThomas Monjalon <thomas@monjalon.net>
Sun, 9 Feb 2020 21:17:25 +0000 (22:17 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 14 Feb 2020 11:42:12 +0000 (12:42 +0100)
commitb689a781733e37be95274c05ffb2328de1172a51
tree9ab0557892eb8081cd51d27b6aaeb24b143dcd4d
parent7593cf1d3500dfce7c9faacfc01f5797556b6a80
net/mlx: replace hardcoded value with macro

Replace checking against 65535 limit,
with a simpler form using RTE_MIN and UINT16_MAX macros.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx4/mlx4_ethdev.c
drivers/net/mlx5/mlx5_ethdev.c