]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit856b1f22564a444923e4287da95b3935befc367e
tree7e771f9af2714f043dcf9182f1a1254557a46c82
parent6789b60d6cc6a3bacd6597c3911cb1ef7f204ff9
net/mlx5: LAG, Use affinity type enumerators

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

Fixes: 30720fbb02df ("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