net/mlx5: LAG, Use port enumerators
authorErez Alfasi <ereza@mellanox.com>
Mon, 16 Sep 2019 10:59:58 +0000 (13:59 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 21:55:17 +0000 (14:55 -0700)
commit84d2dbb0aaaf1098aa2c2ca07003bf3f973732ac
treed9a288758cb4bd32d0d2ac7afc9b445ec917bc5f
parent5a212e0cac548e5e4fb3f2ba1b5b2f6c8949687d
net/mlx5: LAG, Use port enumerators

Instead of using explicit array indexes, simply use
ports enumerators to make the code more readable.

Fixes: 7907f23adc18 ("net/mlx5: Implement RoCE LAG feature")
Signed-off-by: Erez Alfasi <ereza@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lag.c
drivers/net/ethernet/mellanox/mlx5/core/lag.h
drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c