OSDN Git Service

net/mlx5: LAG, Use affinity type enumerators
authorErez Alfasi <ereza@mellanox.com>
Mon, 16 Sep 2019 11:34:55 +0000 (14:34 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Fri, 1 Nov 2019 21:55:17 +0000 (14:55 -0700)
commit1cdc14e9d134a48d86673fd75a6abcbe0e58a29c
tree7e771f9af2714f043dcf9182f1a1254557a46c82
parent84d2dbb0aaaf1098aa2c2ca07003bf3f973732ac
net/mlx5: LAG, Use affinity type enumerators

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

Fixes: 544fe7c2e654 ("net/mlx5e: Activate HW multipath and handle port affinity based on FIB events")
Signed-off-by: Erez Alfasi <ereza@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/lag_mp.c
drivers/net/ethernet/mellanox/mlx5/core/lag_mp.h