]> 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)
commit465b1d7df536cda2c87c6d4cf162f183c68670bd
tree7e771f9af2714f043dcf9182f1a1254557a46c82
parentc67d5befb65c6c44ad602a332c9a521ca1eccf29
net/mlx5: LAG, Use affinity type enumerators

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

Fixes: 228d27b4425e ("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